Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
Balakrishna reddy,
MERGE FIELDS=(46,2,A,CH) is an incorrect syntax.
Change MERGE FIELDS=(46,2,A,CH) to MERGE FIELDS=(46,2,CH,A) and make sure that the SORTINnn input files are in the sorted order of 46,2,CH,A
i have did the same you have suggested,still abend is coming.
below i am giving you the sysout.
Code:
MERGE FIELDS=(46,2,CH,A)
8,876K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
0 BYTES RESERVE REQUESTED, 1,004K BYTES USED
20K BYTES OF EMERGENCY SPACE ALLOCATED
SORTOUT NOT DEFINED
SYNCSMF CALLED BY SYNCSORT; RC=0000
SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
Reddy,
In a nut-shell, what Dick has suggested long back use that syntax. After the change, show your JCL & the SYSOUT messages from this JOB to get better suggestions.
However, in the SYSOUT, shown above in your post, there is
Code:
SORTOUT NOT DEFINED
I think, instead of SORTOUT, you used some other DD Name(ah..I can just guess, please show your JCL & SYSOUT).
As per my observation, I have few questions and suggessions to you
Question 1:
Did you create the dataset to store the output records ? Or Are you creating newly in the same JCL ?
Suggession 1 :
If Not, try with the DCB parameters with equal record length of your input records.
Question 2 :
Did you mention temporary work space ? I hope you didn't mention the temporary work space for sorting and merging all the records that are located in input files.
Suggession 2 :
If you didn't mention that then please code this
//SORTWK00 DD UNIT=SYSDA, SPACE=(CYL ( n , n), RLSE )
or
//SORTWK00 DD DSN=&TEMP, UNIT=SYSDA,SPACE=(CYL ( n , n), RLSE ) (Note : Code Primary & Secondary spaces based on your number of inputs records)
Suggession 3 :
If your input records are more please specify more work spaces.. Like this..
//SORTWK00 DD UNIT=SYSDA, SPACE=(CYL ( n , n), RLSE )
//SORTWK01 DD UNIT=SYSDA, SPACE=(CYL ( n , n), RLSE )
//SORTWK02 DD UNIT=SYSDA, SPACE=(CYL ( n , n), RLSE )
//SORTWK03 DD UNIT=SYSDA, SPACE=(CYL ( n , n), RLSE )
Suggession 4 :
Check all your input records of length, formate,blocksize also, should be equal in all the input data sets.
Suggession 5 :
Try use PGM=SORT
Please let me know if it works / any issues..
Please try to mention clear information about the issue with JOB and JCL error messages.
what i did is when i am giving sortout in dd statement, i have given a wrong syntax for merge,it's showing numeric error . I changed that format to correct one and i also changed that dd name to sortout1,so, that's why i got that abend again.