Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Add a header to a file and reformat the fields using SORT.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
jsnair

New User


Joined: 26 Sep 2006
Posts: 24
Location: India

PostPosted: Mon May 26, 2008 10:58 am    Post subject:
Reply with quote

Hi Skolusu,

This is same JCL as you have posted earlier. I my case there may have Duplicate keys so we need to consider that also. As I had explaied earlier. From my above explanation we van see this here FILE1 contain record with key AL100722922. The same we can see in FILE2. So we need to take this record from FILE1 not from FILE2. In FILE1 there are 5 records and in FILE2 also 5 records. Because there is one duplicate record (AL100722922) we are taking it only from the FILE1. So in output file we should get 9 records. Hope now it is clear.
Back to top
View user's profile Send private message
References
PostPosted: Mon May 26, 2008 10:58 am    Post subject: Re: Reply with quote

Skolusu

DFSORT Developer


Joined: 07 Dec 2007
Posts: 304
Location: San Jose

PostPosted: Tue May 27, 2008 9:08 pm    Post subject:
Reply with quote

jsnair,

oops I guess I pasted the wrong control cards. Change your toolin statement to the following and re-run your job

Quote:

//TOOLIN DD *
SELECT FROM(IN) ON(1,6,CH) TO(OUT) FIRST USING(CTL1)
Back to top
View user's profile Send private message
jsnair

New User


Joined: 26 Sep 2006
Posts: 24
Location: India

PostPosted: Wed May 28, 2008 10:13 am    Post subject:
Reply with quote

Hi Skolusu,

Thanks very much..It is working fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2