Originally posted by sunilnair:
[qb]
quote:
Originally posted by Steve Cowell:
[qb] -SET &INREC = ' ';
-SET &OUTREC = ' ';
-* Allocate files
FILEDEF INFILE DISK infile.dat
FILEDEF OUTFILE DISK outfile.dat
-RUN
-READLOOP
-* Read file contents, in this example I am using a single 25 alpha field
-READ INFILE NOCLOSE &INREC.A25
-* Are we at the end of the file?
-IF &IORETURN NE 0 THEN GOTO END_MAILREAD;
-* Insert you IF condition here and put the results in a variable so that we can write it out
-SET &OUTREC = &INREC;
-WRITE OUTFILE &OUTREC
-GOTO READLOOP
-END_MAILREAD [/qb]
Hi steve,
I am using sequential datasets in OS/390.Also is that possible to write the data in a buffer(HOLD AS) to a sequential dataset ?.
Thanks.
Sunil [/qb]