Page 1 of 1

Query about Read Workfile once?

PostPosted: Thu Dec 02, 2010 12:15 pm
by diptisaini
Hi,

I just need to know on what case READ WORK FILE ONCE statement is useful ?

Re: Query about Read Workfile once?

PostPosted: Thu Dec 02, 2010 1:22 pm
by RGZbrog
READ WORK 1 ONCE #HEADER
READ WORK 1 #DETAIL
...
END-WORK

Re: Query about Read Workfile once?

PostPosted: Thu Dec 16, 2010 1:28 am
by fidelis
The READ WORK FILE ONCE no processing loop is initiated then is used to indicate that only one record is to be read. When used READ WORK FILE ONCE must not be specified END-WORK.

Therefore If you want read 'one-by-one' and maybe stop the sequence and return to read again, use READ WORK FILE statement .