In the CL program, I am overriding my print file to a folder on the IFS; however, I am not specifying the file name, just that it will be a PDF file. Thus when the PDF is created the system will assign it a unique file name.
In the RPGLE program, I am using user control to open and close the file; however, I need the unique file name created on the IFS.
I thought using INFDS I could get this info, but I do not see where I can get this info.
If I am posting in the wrong area or I shouldn’t be on this board, please let me know.
Tom
CL program –
PGM
OVRPRTF FILE(*PRTF) DEVTYPE(*AFPDS) PAGESIZE(11 8.5 +
*UOM) FRONTMGN(0 .25) PAGRTT(0) +
PRTTXT(*BLANK) UOM(*INCH) +
TOSTMF('/TN/') WSCST(*PDF)
CALL PGM(IF010R)
DLTOVR FILE(*PRTF)
ENDPGM
RPGLE program –
fqsysprt o f 132 printer oflind(*inof) usropn
*
c z-add 1 x 1 0
c x dowle 5
*
c open qsysprt
c except prtdtl
c close qsysprt
*
c add 1 x
c enddo
*
c move *on *inlr
*
**********************************************************************
*
oqsysprt e prtdtl 1 10
o 10 'Test:'
o x j 15