Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Wed Apr 02, 2008 7:53 am Post subject:
For a start this is not a JCL question but a sort question so should be in the Utilities section.
Your TOOLIN dataset is empty because of the JCL comment statements that follow it immediately, before your input. You should have a message saying that SYSIN DD statement was generated because non-JCL data was met without a DD * statement immediately preceding it and it is therefore assumed to be SYSIN data. _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Wed Apr 02, 2008 12:21 pm Post subject:
k_apsara_1,
The following DFSORT/ICETOOL JCL will give you the desired results. A brief explanation of the job.
The first copy copies input file1 to temp file T1 padding 5 spaces at pos 11
the second copy operator copies input file2 to temp file T1 copying the contents of pos 5 for a length of 5 bytes to pos 11
The last SPLICE operator sorts on the key (1,3,ch) and if a match is found it combines the 2 records resulting a single records with both the values like shown below
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