AS400 Create CSV (IFS file) from PF




Below command will copy hte WRKFILE from Qtem to a CSV file in Directory DIR.

CPYTOIMPF FROMFILE(QTEMP/WRKFILE) TOSTMF('/DIR/FILENAME.CSV') MBROPT(*REPLACE)   STMFCODPAG(*PCASCII) RCDDLM(*CRLF) ADDCOLNAM(*SYS) 

Comments

Popular posts from this blog

AS400 : Add a new line in text in email SNDSMTPEMM

AS400 Display: Radio Button (SNGCHCFLD)

AS400 Display File: Check Box (MLTCHCFLD)