Can we convert a 9(3) field to 9(4) field using DFSORT?.
The input file is of 120 byte (record layout is of 100 bytes data and 20 byte filler). The field i need to convert is at starting offset 48. Can we handle the length increase of a field in between using DFSORT?
Actually I need to update the input file. Since there is enough filler available, I need to keep the file length same and do the required offset adjustments. For eg:
Field A occupies 1 to 47 offset,
Field B occupies 3 bytes starting from 48 position (this of 9(3))
Field C occupies 51 to 100 offsets and filler occupying remaining 20 bytes.
I need to update the file as below,
Field A --> 1 to 47 offset
Field B occupies 4 bytes starting from 48 position (this field needs to be converted from 9(3) to 9(4)).
Field C --> 52 to 101 offsets and remaining 19 bytes filler.
TO=ZD will use an F sign for the positive 4-byte ZD values. If you want a C sign instead, use TO=ZDC instead of TO=ZD.
will work for positive values only which might be what's needed as implied by the format of 9(4), but TO=ZD,LENGTH=4 is probably a better choice since it will handle positive and negative values. TO=ZDC is obviously the best choice if C signs are needed.