![]() Chapter Contents |
![]() Previous |
![]() Next |
| FAPPEND |
| Category: | External File |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| sysrc=FAPPEND(file-id<,cc>); |
| 0 | successful |
0 |
not successful |
Type: Numeric
Type: Numeric
'0''-''1''+''P''='Type: Character
| Details |
FAPPEND adds the record currently contained in the File Date Buffer (FDB) to the end of an external file.
Operating Environment Information: OS/390
Records
cannot be appended to partitioned data sets.
| Example |
Use FAPPEND to append a record to a file:
/* Assign the fileref THEFILE to the physical */
/* filename that the user entered in the */
/* field FNAME and open it in append mode. */
rc=filename( 'thefile',fname);
fid=fopen('thefile','a');
if (fid>0) then
do;
/* Append a new record to the file. */
rc=fput(fid,'Data for the new record');
rc=fappend(fid);
rc=fclose(fid);
end;
else
do;
...other SCL statements...
end;
rc=filename('thefile",'');
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.