On Fri, 17 Oct 2025 19:49:20 +0000, Farley, Peter \ wrote: >I am trying to copy a regular z/OS file consisting of RECFM=VBA,LRECL=8196 >text records (CCSID IBM1047) into a Unix file converted to CCSID ISO8859-1 >like this: > >cp -O c=ISO8859-1 "//'TSOUSER.DATA.FILE'" /u/tsouser/DATAFILE.txt > ... What does cp purport to do with Skip-to-Channel control codes?
>Sometimes this works, sometimes it does not, and I cannot figure out what is >different when it does not work. When it fails, I just get the IBM1047 >character data in the Unix file with no line endings. > >Environment variable settings are: > >_BPXK_AUTOCVT=ON >_CEE_RUNOPTS='FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)' >_TAG_REDIR_ERR=txt >_TAG_REDIR_IN=txt >_TAG_REDIR_OUT=txt > >Am I forced to use an "iconv" here after using "cp" without using the "-O >-c=ISO8859-1" option? Is the "A" in RECFM=VBA messing me up? It is easily >possible for me to create the VBA file as VB instead, but do I need to do that? -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
