Bingo! Perfect. Thanks. Haven't done the download yet but that should be straightforward.
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Norbert Friemel Sent: Tuesday, September 01, 2015 8:29 AM To: [email protected] Subject: Re: FTP - how get RDW and ASCII On Tue, 1 Sep 2015 08:01:42 -0700, Charles Mills wrote: >I have a legacy dataset in VB format. I would like to FTP it to a PC >(1) translating the record data to ASCII and (2) preserving the LLBB >record control words. (Don't need the block control words.) I tried the >obvious ASCII and QUOTE SITE RDW but FTP has translated my RDWs to >ASCII (rendering them useless of course). Does anyone have a clever >trick to translate the "data" portion of the records to ASCII but preserve the >LLBBs? > >This is a one-time development chore, not a nightly production job. I'm >not fussy about code pages and so forth. The dataset is small: 30 >records, 20K total. > >One of you UNIX experts: should I just translate it to ASCII on z/OS >first and then FTP it in binary with RDWs? Would someone be so kind as >to share the command to do the translate? Again, the existing dataset >is legacy MVS, and I need to preserve LLBBs. > > Not Unix, but... //* //STEP1 EXEC PGM=SORT //* //SYSOUT DD SYSOUT=* //SORTIN DD DISP=OLD,DSN=VB-EBCDIC //SORTOUT DD DISP=(,CATLG,DELETE), // SPACE=(TRK,(5,5),RLSE), // DSN=VB-ASCII //SYSIN DD * OUTFIL BUILD=(1,4,5,TRAN=ETOA) OPTION COPY /* ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
