I have an input file of having variable record length 2000, i want to write all the i/p records into outfile( of having fixed length 1000).
we can do this using program also, i want to do this using JCL sort/Icetool.
Please find below example.
1) if the input file have spaces in 1001 to 1010 positions, write only the record from 1 to 1000 positions to o/p file.
2) if the i/p file have any data from 1001 to 1010 positions (atleast any single character in any of these positions), write the record from 1 to 1000 bytes as one record and 1001 to 2000 as another record.