E-Business Server:Formatting is incorrect when decrypting files

From SDS
Jump to navigation Jump to search



Formatting is incorrect when decrypting files

Technical Articles ID: SDSKB15


Environment
E-Business Server 7.x
IBM z/OS


Problem
When decrypting a dataset, the end of line (EOL) indicators are missing. This causes the formatting of the file to be incorrect.


Cause
When the file was encrypted the –-text modifier was not used. The modifier is necessary to make e-Business Server preserve the line formatting.


Solution
Ensure that you use the –-text switch during encryption to preserve the formatting.NOTE: The dataset must be all text; if it also contains binary data you cannot use the –-text modifier because it will incorrectly convert the data. It is possible though to preserve the format w/o the text option if the input and output datasets both use fixed length records with the same lrecl specified.