View previous topic :: View next topic
|
Author |
Message |
JOYEETA PAUL Currently Banned New User
Joined: 18 Sep 2008 Posts: 17 Location: bangalore
|
|
|
|
this is my JCL-merge code.here DS1 & DS2's records i want to merge in DS3, after creating this.but this code is not working.why? can anybody tell me?
Code: |
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN01 DD DSN=JOP3I0.JCLTEST.DS1,DISP=SHR
//SORTIN02 DD DSN=JOP3I0.JCLTEST.DS2,DISP=SHR
//SORTOUT DD DSN=JOP3I0.JCLTEST.DS3,
// DISP=(MOD,CATLG,DELETE),
// SPACE=(CYL,(10,10),RLSE)
//SYSIN DD *
OPTION MERGE
/*
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You also need to post the output |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello Joyeetha,
Please refer to sort manual. You need to provide some thing like...
MERGE FIELDS=(110,10,CH,A,162,4,BI,D) |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
JOYEETA PAUL,
Input files to a MERGE operation must be presorted on a particular key and you need to mention the position,length and format of the key fields in the MERGE control statement as follows:
Code: |
MERGE FIELDS=(p1,l1,f1,p2,l2,f2,....) |
The violation of the above rule results in SyncSort termiating with WER068A- error |
|
Back to top |
|
|
|