_________________ Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Last edited by vivek1983 on Wed Dec 19, 2007 3:11 am; edited 1 time in total
May I know whether this can be done using single SORT step.....
Well... The first step is to identify the last record.
I am not able to think of a single step solution.. Maybe we may have to wait for the experts.. _________________ Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
Posted: Wed Dec 19, 2007 8:54 am Post subject:
Looks like you might be building an IN list. Would it be possible to put the comma at the beginning of each record? If you can, then I think you'd be able to use a SKIPREC to not put the comma on the first record. Just a thought.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Dec 19, 2007 11:27 am Post subject:
Kumar,
Vivek is on the right track, but his job is more complex than it has to be. Here's a better version of the DFSORT job. I assumed that your input file has RECFM=FB and LRECL=80, but the job can be changed appropriately for other attributes.
May I know whether this can be done using single SORT step.....
I can't think of a way to do it in one pass. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Wed Dec 19, 2007 7:07 pm Post subject:
You are requesting a solution by SORT which is a utility. Why post in the JCL section which is to do with the Job Control Language??? _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum