Joined: 23 Feb 2007 Posts: 25 Location: Dallas, TX
I have 3 kinds of records in my file - type 10, type 20 and type 30. Type of record is present in the first 2 bytes of the record. I have a single type 30 record that contains a numeric of 8 bytes with leading zeros compressed starting from position 3 till position 10 in the record. My task is to convert this 8 byte numeric field into a packed decimal of 5 bytes, thats S9(9) comp-3. I just need to convert the type 30 record. The remaining type 10 and type 20 records need not be converted. I would prefer to use sort (PGM=SORT) if possible.
Thanks in advance !
Sample data in the file looks like:
205319390000001016 DV ....NN
209000001360121007 BP ....YN
206111210000001014 BP ....YN
PGM=SORT or PGM=ICEMAN invoke the sort product at your site (DFSORT, Syncsort, CA-SORT).
I don't know if this will work with Syncsort. I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on Syncsort.