Page 1 of 1

Converting CRLF after PGP Decryption

PostPosted: Tue Nov 15, 2011 1:48 am
by fraser_john
We are receiving a file that originates on an ASCII based OS onto the host, it has been encrypted using PGP. Given that it is encrypted, the file has been transferred in BINARY, so no translation of 'x0d0a' CRLF has occurred.

After decryption, we need it in a VB file with a record length of 130 bytes. After decryption, the x'0d0a' for CRLF are present in the file indicating the end of record from the original ASCII OS.

Does any one have a suggestion on how we can convert the ASCII CRLF to a host end of record after the file has arrived on the host and after it has been decrypted?

Re: Converting CRLF after PGP Decryption

PostPosted: Tue Nov 15, 2011 1:52 am
by NicC
Mainframe does not have end of record indicators - it uses the LRECL of the dataset for FB. VB datasets use the RDW information for the same. You need to drop the CRLF bytes. Also, other special characters may need to be translated.

If you are using a fixed length of 130 why are you using VB format?

Re: Converting CRLF after PGP Decryption

PostPosted: Tue Nov 15, 2011 2:01 am
by fraser_john
well, it is more a maximum LRECL if all fields are present in the inbound record.

Re: Converting CRLF after PGP Decryption

PostPosted: Tue Nov 15, 2011 2:20 am
by dick scherrer
Hello,

One way to get where you need to be is to simply ignore the cr/lf in the mainframe data. Allow for the extra bytes and just do not use them in the mainframe process.

Re: Converting CRLF after PGP Decryption

PostPosted: Tue Nov 15, 2011 3:01 am
by BillyBoyo
What does the file look like after de-pgping? Is it records with hex codes for CR/LF at the end? Is the rest of the data "text" data? Then you could, as Dick has said, just leave them there, or you could drop them with a program or possibly with your Sort product.

If it is a big "lump" then you'll have to de-lump it with a program.

Re: Converting CRLF after PGP Decryption

PostPosted: Tue Nov 15, 2011 3:07 am
by enrico-sorichetti
the whole process is at least ... murky
what product is used to decrypt the <file> ,
how do You plan to translate to EBCDIC the data
and ...
and ...
too many issues issues undefined to be able for anybody to provide a good answer

depending on the product used there might be additional utilities to take of the file handling after decryption ( even VSAM support )
the best source of info will be certainly the docs of the PGP product being used

Re: Converting CRLF after PGP Decryption

PostPosted: Tue Nov 15, 2011 3:28 am
by enrico-sorichetti
too many issues issues undefined to be able for anybody to provide a good answer

depending on the product used there might be additional utilities to take of the file handling after decryption ( even VSAM support )


:oops: sorry for the sloppy writing
should have been

too many issues undefined to be able for anybody to provide a good answer

depending on the product used there might be additional product utilities to take care of the file handling after decryption ( even VSAM support )