How to read a record from SPLF and write into PF?
Page 1 of 1
How to read a record from SPLF and write into PF?
When you copy the spool file to the physical, do this (assuming QSYSPRT is the printer file name):
CPYSPLF FILE(QSYSPRT) TOFILE(SPOOLPF) CTLCHAR(*FCFC)
To take the contents from the PF back to a spool file do this:
CPYF FROMFILE(SPOOLPF) TOFILE(QSYSPRT) MBROPT(*ADD)
Is there any new method ,please let me know ?
CPYSPLF FILE(QSYSPRT) TOFILE(SPOOLPF) CTLCHAR(*FCFC)
To take the contents from the PF back to a spool file do this:
CPYF FROMFILE(SPOOLPF) TOFILE(QSYSPRT) MBROPT(*ADD)
Is there any new method ,please let me know ?
prince selvaraj- Posts : 2
Join date : 2012-10-21
Age : 37
Location : Angola
Similar topics
» PF not able to read or write or update records. Why?
» Read using record format or File name
» Write, Update & Delete the records via RPG without recspective opcodes WRITE, UPDAT & DELET
» Read records without respective opcodes READ, READP... CHAIN
» How to write Data to Variable File using RPG ?
» Read using record format or File name
» Write, Update & Delete the records via RPG without recspective opcodes WRITE, UPDAT & DELET
» Read records without respective opcodes READ, READP... CHAIN
» How to write Data to Variable File using RPG ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum