Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for empty file before running an RPG program

Status
Not open for further replies.

tbrowne

IS-IT--Management
Dec 27, 2001
51
US
Is there a way to check a file to see if it has records in it with a CL program before calling an RPG program that uses the file? I want to backup a recordset before changing any data in it, but only if the recordset contains data. Otherwise, I want the backup to remain intact.
 

RTVMBRD FILE(Library/File) NBRCURRCD(&RECS)

grace
 
That's exactly what I needed. Thnak you so much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top