Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How I can reread the physical file in CL program once the
end of file reached in same CL program.

Answer Posted / sekhar

In V5R4M0 , we can declare 5 files in CL-ILE pgm

DCLF (FILE1) OPENID(OP1_)
DCLF (FILE2) OPENID(OP2_)
DCLF (FILE3) OPENID(OP3_)
DCLF (FILE4) OPENID(OP4_)
DCLF (FILE5) OPENID(OP5_)

DCL &LGL *LGL VALUE('1')

DOWHILE (&LGL = '1')

RCVF (RCDFMT_FILE1)

MONMSG MSGID(CPF0864) EXEC(LEAVE)

OPERATIONS

ENDDO

SIMILAR TO ALL 4 FILES....

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between do while and do until?

1202


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

1141


how does the rpg element work?

1161


how do I declare a table or array in rpg iv?

1136


What is the difference between copybooks and subprocedures in as400?

1319


what is a rpg?

1142


What is difference between bind by copy and bind by reference?

2420


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2588


explain sflclr, sflend, sfldlt, and sflcsrrrn?

1305


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2954


which program rpg or cl is efficent to update a transaction onto a database file and why ?

1211


is this a rpg channel?

1130


what is the use of sflnxtchg?

1214


When it is desirable to describe files Internally?

1668


how can I tell when to replace the array?

1166