I have the input file. My output file should be formatted such a way that it should contain an extra field. This extra field should contain the sequence number (in decremented format).
I have tried with the below sort card:
Thanks alot for the reply.
Though you have mentioned ZD in the card, i am getting the output in the below format:
May i know the reason for the same? How to get in the proper format?
The DFSORT job I showed gives readable values like 000000050000000. The values you're getting indicates you're using Syncsort (WER messages), not DFSORT (ICE messages). DFSORT uses an F sign for the ZD result to give readable values whereas Syncsort uses a C sign for the ZD result to give unreadable values.
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.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
What will be the use of these decremented sequence numbers?
If they are to be used in some code or utility, those values are valid numbers. They aren't as easy to read manually, but will work correctly if used as data in a compare or a report. Actually, if they are reported as numbers, the output should look as you'd prefer.