Author: Abid Hasan
Posted: Thu Sep 22, 2016 12:15 pm (GMT 5.5)
Hello,
Why specify the DCB/LRECL at all, let *SORT decide it for you. The BUILD statement here is the one deciding the output dataset's LRECL, so till the time the LRECL calculated in BUILD corresponds to what is specified in the DCB information, you're good, else an error; revisit the BUILD statement, correct it to fit your requirement, if 90 bytes is needed, and your actual output data is only - say 50 bytes, simply add a '90:X' in your build, which says add a space at 90th byte, this will force the output dataset's LRECL to be of 90 bytes; this is just one of the many ways of forcing a LRECL via a *SORT card.
_________________
Thanks.
Posted: Thu Sep 22, 2016 12:15 pm (GMT 5.5)
Hello,
Susanta wrote: |
.. i need the final o/p to be similar to file F1 in structure , i mean LRECL as 90 . But it fails when i put lrecl as 90 in the F1ONLY dd card. ... |
Why specify the DCB/LRECL at all, let *SORT decide it for you. The BUILD statement here is the one deciding the output dataset's LRECL, so till the time the LRECL calculated in BUILD corresponds to what is specified in the DCB information, you're good, else an error; revisit the BUILD statement, correct it to fit your requirement, if 90 bytes is needed, and your actual output data is only - say 50 bytes, simply add a '90:X' in your build, which says add a space at 90th byte, this will force the output dataset's LRECL to be of 90 bytes; this is just one of the many ways of forcing a LRECL via a *SORT card.
_________________
Thanks.