Hi All,
I am trying to copy a spoolfile to a PF using program QSPGETF
However, i keep getting an error message:
CPF3303 File WMR981P1 not found in job 602218/RSANDBRINK/PRT_MODOC
The spoolfile does exist:
Job . . . . . . . . : PRT_MODOC File . . . . . . . . : WMR981P1
User . . . . . . . : RSANDBRINK Number . . . . . . : 000004
Number . . . . . . : 602218 Creation date . . . : 21/07/08
I have tried several things:
1. Using command:
GETSPLF FILE(WMR981P1) JOB(602218/RSANDBRINK/PRT_MODOC) SPLNBR(4)
2. calling the QSPGETF in a CL variable spoolnumber
DCL &Spfn *CHAR 6 /*Spool file no*/
DCL &Spfn_Bin *CHAR 2 /* Spool file.(B2)*/
CHGVAR %BIN(&Spfn_bin) (&Spfn)
CALL QSPGETF PARM(&Spoolfile &FileAndLib &Job &Spfn_Bin &Mbr)
3. Hardcoded:
CALL PGM(QSYS/QSPGETF) PARM('WMR981P1 ' 'P132 SANDBRINK ' 'PRT_MODOC RSANDBRINK602218' X'0004' 'P132 ')
All with the same result.
Can anyone tell me what i am doing wrong?
Thanks in advance
Regards,
Rob Sandbrink
I am trying to copy a spoolfile to a PF using program QSPGETF
However, i keep getting an error message:
CPF3303 File WMR981P1 not found in job 602218/RSANDBRINK/PRT_MODOC
The spoolfile does exist:
Job . . . . . . . . : PRT_MODOC File . . . . . . . . : WMR981P1
User . . . . . . . : RSANDBRINK Number . . . . . . : 000004
Number . . . . . . : 602218 Creation date . . . : 21/07/08
I have tried several things:
1. Using command:
GETSPLF FILE(WMR981P1) JOB(602218/RSANDBRINK/PRT_MODOC) SPLNBR(4)
2. calling the QSPGETF in a CL variable spoolnumber
DCL &Spfn *CHAR 6 /*Spool file no*/
DCL &Spfn_Bin *CHAR 2 /* Spool file.(B2)*/
CHGVAR %BIN(&Spfn_bin) (&Spfn)
CALL QSPGETF PARM(&Spoolfile &FileAndLib &Job &Spfn_Bin &Mbr)
3. Hardcoded:
CALL PGM(QSYS/QSPGETF) PARM('WMR981P1 ' 'P132 SANDBRINK ' 'PRT_MODOC RSANDBRINK602218' X'0004' 'P132 ')
All with the same result.
Can anyone tell me what i am doing wrong?
Thanks in advance
Regards,
Rob Sandbrink
Comment