On Tue, 16 Oct 2018 14:43:02 +0000, Gadi Ben-Avi wrote:
>
>I used FTP to transfer a bunch of tersed files from one LPAR to another.
>By mistake, the destination files were created as VB1024
>
>The original files were deleted.
>
>Is there any way to fix file files.
>Using ISPF copy did not work.
>
I'd try two steps:

//STEP1  EXEC PGM=IEBGENER
//SYSUT1  DD  DISP=SHR,DSN=BAD.TERSED.FILE
//SYSUT2  DD  FILEDATA=BINARY,PATH='/tmp/gadi/tersed',PATHMODE=(...)

Inspect the output.  If its length is not a multiple of 1024, you're SOL

//STEP1  EXEC PGM=IEBGENER
//SYSUT1  DD  FILEDATA=BINARY,PATH='/tmp/gadi/tersed',RECFM=FB,LRECL=1024
//SYSUT2  DD  DISP=(,CATLG),DSN=FIXED.TERSED.FILE

Good luck,
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to