PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

How to compile the RPG program when declared file does not exist on the system?

View previous topic View next topic Go down

How to compile the RPG program when declared file does not exist on the system?

Post  maran on Tue Jun 25, 2013 12:55 am

There is a situation when we have to use the file which does not exist.  In such a case, we would use  an OVRDBF command to point to another file with the same layout.
 
But no need to do this, use the EXTDESC keyword instead of.  EXTDESC keyword to an F-spec to indicate the actual file to use when compiling the program
 
Example:

EXTDESC( 'EMPMST' )
EXTDESC( '*LIBL/EMPMST' )
EXTDESC( 'PMS/EMPMST' )

maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum