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

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

Join the forum, it's quick and easy

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

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

Go down

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

Post  maran 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
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

Back to top

- Similar topics

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