|
View previous topic :: View next topic
|
| Author |
Message |
balakrishna reddy
Active User

Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
Hi all,
Can any one resolve this issue.
i am getting u016 abend when i am trying to do merge on 3 flat files
i will provide you my jcl so that you can find where the error is.
| Code: |
STEP03 EXEC PGM=SORT
SYSOUT DD SYSOUT=*
SORTIN01 DD DSN=TEST.BALA.FILEA,DISP=SHR
SORTIN02 DD DSN=TEST.BALA.FILEB,DISP=SHR
SORTIN03 DD DSN=TEST.BALA.FILEC,DISP=SHR
SORTOUT DD DSN=TEST.BALA.FILE,DISP=(,CATLG,DELETE),
UNIT=SYSDA,SPACE=(CYL,(20,10))
SYSIN DD *
MERGE FIELDS=(46,2,CH,A)
/*
|
when i opened the spool messages it is showing like numeric error |
|
| Back to top |
|
 |
krisprems
Active Member

Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
balakrishna reddy
Provide your SYSOUT details. |
|
| Back to top |
|
 |
balakrishna reddy
Active User

Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
krisprems wrote:
| Quote: |
Provide your SYSOUT details
|
Hi this is my sysout information,need anything else please let me know
| Code: |
G
MERGE FIELDS=(45,2,A,CH)
*
MERGE STATEMENT : NUMERIC FIELD ERROR
SYNCSMF CALLED BY SYNCSORT; RC=0000
SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
|
|
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Instead of
| Code: |
| MERGE FIELDS=(45,2,A,CH) |
try
| Code: |
| MERGE FIELDS=(45,2,CH,A) |
|
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Reddy,
A small doubt, your original JCL (first post of this thread from you) shows
| Code: |
| MERGE FIELDS=(46,2,CH,A) |
while in SYSOUT you got the error in
| Code: |
| MERGE FIELDS=(45,2,A,CH) |
bit strange for me. Can you please clarify. |
|
| Back to top |
|
 |
balakrishna reddy
Active User

Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
hi anuj,
I am really very sorry,that was one of my trails to get rid of the abend
even though i changed it to
| Code: |
merge fields=(46,2,A,CH)
|
the same message is coming |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| Please post your sysout. |
|
| Back to top |
|
 |
balakrishna reddy
Active User

Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
hi thomposon,
| Quote: |
Please post your sysout.
|
| Code: |
BROWSE - SYSOUT STEP03 - Page 1 Line 1 Cols 1-80
COMMAND ===> SCROLL ===> SCREEN
******************************** Top of Data ***********************************
SYNCSORT FOR Z/OS 1.1DN TPF3 U.S. PATENTS: 4210961, 5117495 (C) 2002 SYNC
GLICOA z/OS 1.7.1
SYSIN :
MERGE FIELDS=(46,2,A,CH)
*
WER271A MERGE STATEMENT : NUMERIC FIELD ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
|
this is my sysout. |
|
| Back to top |
|
 |
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
I think for MERGE, we should have to use EXEC PGM=ICEMAN.
Change the EXEC PGM=SORT to EXEC PGM=ICEMAN and MERGE FIELDS=(46,2,A,CH) to MERGE FIELDS=(46,2,CH,A) |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| Sort will work just fine, but you must get the format of the fields parameter correct...... |
|
| Back to top |
|
 |
shankar.v
Active User
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 |
|
| Back to top |
|
 |
balakrishna reddy
Active User

Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
Hi shankar,
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
|
|
|
| Back to top |
|
 |
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
| Quote: |
| SORTOUT NOT DEFINED |
This means that SORTOUT DD statement could not be found. |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 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). |
|
| Back to top |
|
 |
BalaMuraliL
New User
Joined: 01 Aug 2007 Posts: 10 Location: Pune
|
|
|
|
Hi Balakrishna,
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. |
|
| Back to top |
|
 |
balakrishna reddy
Active User

Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
Hi ,
this is my jcl :
| Code: |
STEP03 EXEC PGM=SORT
SYSPRINT DD SYSOUT=*
SORTIN01 DD DSN=TEST.BALA.FILEA,DISP=SHR
SORTIN02 DD DSN=TEST.BALA.FILEB,DISP=SHR
SORTIN03 DD DSN=TEST.BALA.FILEC,DISP=SHR
SORTOUT1 DD DSN=TEST.BALA.FILE,DISP=(NEW,CATLG,DELETE),
UNIT=SYSDA,SPACE=(CYL,(20,10)),
DCB=(LRECL=80,RECFM=FB,BLKSIZE=400,DSORG=PS)
SYSIN DD *
MERGE FIELDS=(46,2,CH,A)
SYSPRINT DD SYSOUT=*
SYSOUT DD SYSOUT=*
SYSUDUMP DD SYSOUT=*
ABNLNODP DD DUMMY
|
|
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
You have given SORTOUT1 in your SORT, change it to SORTOUT
| Code: |
| SORTOUT1 DD DSN=TEST.BALA.FILE,DISP=(NEW,CATLG,DELETE), |
If you'll use above code you'll get U0016 & SYSOUT will show
| Code: |
| SORTOUT NOT DEFINED |
So change your SORTOUT1 DD name to SORTOUT & let us know the result. |
|
| Back to top |
|
 |
balakrishna reddy
Active User

Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
oh thanks a lot anuj its working now.
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.
thanks to all  |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
| balakrishna reddy wrote: |
| its working now. |
Good  |
|
| Back to top |
|
 |
kotesh
New User
Joined: 11 May 2005 Posts: 20
|
|
|
|
is it possible to complete in single step????
I tried in one step to create 4 files in next step I will mege all and copy to one. |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
are You sleeping ?
haven' t You noticed that Your topic has been split and is <standing> on its own ? |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|