Hi,
You can read and write the source file where you defined the LF like a normal file, either natively or through SQL. Do a DSPFFD of the source PF to get the column definitions.
To change the pfile in the source of the LF read the source until you find 'PFILE(' in column 45 of the source. Change it to whatever you want, close the file and compile it on the fly.
Good luck.
JohnDavid
Last Wiki Answer Submitted: January 9, 2006 4:43 am by JohnDavid5 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Would using OPNQRYF be an alternative?
Would it work to use the ADDLFM command and specify the physical file and member on the DTAMBRS parameter?
I’ve never done what you’re after, but this seems like a simple approach to me.