My output file should be in length of 258 bytes, where field1 will be 8 bytes and field 2 should be split in multiples of 250 bytes like below. The records should be split like first line will have 258 bytes and the second line should have first 8 bytes as dots (.) and 250 bytes of field2. Instead of dots(.), spaces are also fine.
In syncsort, we do not have RESIZE option like in DFSORT. So we need to do this split without resize option. I can use newline operator '/' to achieve this but I need to use this for 30 times for 7500 length record.
Your suggestions are welcome and thanks in advance.
Hi Enrico and bill,
Thanks for the quick reply. The idea behind why I am not using the '/' operator is we are thinking of increasing the size of field2 to 32000 bytes. So I need some other method which can be used to split the records.
Do the necessary, either by hand or auotmation, then you have something which you can quickly change the sizes on, the content of the mask, whatever, without having to calculate a single position yourself.
In the same input with 32000 byte LRECL, There is possibility that lot of bytes will be spaces. when I get no data/spaces for the 250 bytes while splitting the record or after splitting the records, I will get lot of empty lines. I need to remove those empty lines in the output file.I need to remove those empty lines in the same step/sort card. Any suggestions are welcome.