[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

CREATING A HEADER RECORD ON A TEXT FILE.



I am creating a txt file by doing the following:

open '{FILEPREFIX}filename.txt{FILESUFFIX}' as 1 for-writing
record=132:fixed

I do my select and output as follows:

write 1 from $FILLER:45
                       $DED_AMT:7
                       $PAY_End_DT:6
                       $BIRTHDATE:6
                       $NAME:26

This works fine by giving be a list of data.

Here comes the problem. I now need to create a header (summary) record line to preceed the data
dump. Do I create
two write 1 from lines? Or is there a better way?
Please help...TY, CK