I have been trying to find a way to use the CPYTOIMPF or CPYTOSTMF commands to copy a Program described file that is 2220 characters long so that the resulting text file has the same record length and is in a readable format.
I have been able to transfer the file as a fixed length but the characters are translated to @ and other characters. I have been trying to use the option STMFCCSID of *PCASCII with DTAFMT of *FIXED and RECDLM of *CRLF I have also used the option of STMFCODPAG of *PCASCII with the same result.
If the file is transfered in a format that is readable then the records are truncated. I have been unable to find a way to get the entire record transfered without having it truncated and being in a format that is usable
I want to name the resulting file something like: ReportFileCCYYMMDDHHMMSS.txt so that each time it is copied it will have a unique name.
Does anyone have any ideas of how to do this?
Thanks for your help.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!