Query about Read Workfile once?



Software AG's platform-independent programming language with full support for open-source and Internet applications

Query about Read Workfile once?

Postby diptisaini » Thu Dec 02, 2010 12:15 pm

Hi,

I just need to know on what case READ WORK FILE ONCE statement is useful ?
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Query about Read Workfile once?

Postby RGZbrog » Thu Dec 02, 2010 1:22 pm

READ WORK 1 ONCE #HEADER
READ WORK 1 #DETAIL
...
END-WORK
User avatar
RGZbrog
 
Posts: 101
Joined: Mon Nov 23, 2009 1:34 pm
Location: California, USA
Has thanked: 0 time
Been thanked: 0 time

Re: Query about Read Workfile once?

Postby fidelis » Thu Dec 16, 2010 1:28 am

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 .
fidelis
 
Posts: 7
Joined: Thu Dec 16, 2010 1:01 am
Location: Brazil
Has thanked: 0 time
Been thanked: 0 time


Return to Natural

 


  • Related topics
    Replies
    Views
    Last post