Page 1 of 1

jcl to strip asa control characters?

Posted: Fri Sep 08, 2017 1:35 am
by peeterjoot
I have test results containing SYSPRINT for a regression test suite that have been copied to unix and had the ASA control characters stripped out. I'm recompiling the (PL/I) code and want to compare the results against the previous versions, but the SYSPRINT of my new PL/I programs (which I am redirecting to a DATASET) has ASA control characters in the output.

Is there a JCL mechanism to strip the ASA control characters from the DATASET that the SYSPRINT output is saved to?

Re: jcl to strip asa control characters?

Posted: Fri Sep 08, 2017 7:15 am
by Robert Sample
If your data set is FBA or VBA, changing it to FB or VB may keep the carriage control characters out of it, but this is by no means certain.

Your best bet would be to use the utility of your choice (IEBGENER and SORT are both good; if your site has SAS it is excellent for this) to copy the data set (bytes 2 through ... ) to another FB (or VB) data set.

Re: jcl to strip asa control characters?

Posted: Sun Sep 10, 2017 1:11 am
by prino
Use SuperC with different column CMPCOLMN/O options for the old and new files.