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

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

SAME FILE in differenet LIB used in RPG

View previous topic View next topic Go down

SAME FILE in differenet LIB used in RPG

Post  maran on Mon Aug 17, 2009 1:28 pm

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?
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

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

Back to top Go down

Re: SAME FILE in differenet LIB used in RPG

Post  rajapandian on Sun Aug 30, 2009 8:02 pm

it can be possible by rename the file record format of file in second library

rajapandian

Posts : 5
Join date : 2009-08-06

View user profile

Back to top Go down

EXTFILE

Post  razuk_r on Tue Sep 01, 2009 4:18 am

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.

razuk_r

Posts : 65
Join date : 2009-07-31
Location : Chennai

View user profile

Back to top Go down

Re: SAME FILE in differenet LIB used in RPG

Post  maran on Tue Sep 08, 2009 5:43 pm

Razuk, Inside the program also ( F spec ) we need to use the same names..
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

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

Back to top Go down

Re: SAME FILE in differenet LIB used in RPG

Post  Sponsored content


Sponsored content


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