SAME FILE in differenet LIB used in RPG
3 posters
Page 1 of 1
SAME FILE in differenet LIB used in RPG
I need to access same file which exists in the different libraries in RPG program. Records from first file need to be read and write into second file with the same RPG program. NO CL call directly or indirectly. How this can be done?
Re: SAME FILE in differenet LIB used in RPG
it can be possible by rename the file record format of file in second library
rajapandian- Posts : 5
Join date : 2009-08-06
EXTFILE
This can be acheived by keyword EXTFILE by defining in F' spec..
Ex: LIBA/FileA and LIBB/FileA
F PF1 ....... EXTFILE('LIBA/FILEA')
F PF2 ....... EXTFILE('LIBB/FILEA')
* PF1 and PF2 should exists with same att. of FILEA.
Ex: LIBA/FileA and LIBB/FileA
F PF1 ....... EXTFILE('LIBA/FILEA')
F PF2 ....... EXTFILE('LIBB/FILEA')
* PF1 and PF2 should exists with same att. of FILEA.
razuk_r- Posts : 65
Join date : 2009-07-31
Location : Chennai
Re: SAME FILE in differenet LIB used in RPG
Razuk, Inside the program also ( F spec ) we need to use the same names..
Similar topics
» What are the reasons a logical file may be "dropped" during the File definition load process?
» Define term 'File Type' and list various file types.
» SAME FILES IN DIFFERENET LIBRARY
» Copy Spool File to PF/Flat file
» Physical File & Logical File
» Define term 'File Type' and list various file types.
» SAME FILES IN DIFFERENET LIBRARY
» Copy Spool File to PF/Flat file
» Physical File & Logical File
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum