IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

issue with SORT card


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
devd

New User


Joined: 19 Mar 2009
Posts: 11
Location: Chennai

PostPosted: Wed Jun 29, 2011 4:02 pm
Reply with quote

My SORT step reads as below
Code:
//STEP002  EXEC PGM=SORT                                           
//SYSOUT   DD SYSOUT=*                                             
//SORTIN   DD DSN=AADFI.CS.DATA.REPORT,DISP=SHR         
//SORTOUT  DD DSN=AADFI.CS.DATA.REPORT1,SPACE=&SPACE,   
//            DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),                   
//            DISP=(NEW,CATLG,DELETE)                               
//SYSIN    DD DSN=CADFI.SH.BMPX.PARM(CSRDEL2),DISP=SHR     
//*   


CSRDEL2 reads as below :

Code:
 OPTION    NULLOUT=RC4,VLSHRT                     
 SORT FIELDS=COPY                                 
 INCLUDE COND=(13,9,CH,EQ,C'NONVSAM--')           
 OUTFIL VTOF,BUILD=(1:C' DELETE ',22,35,80:X) 


However when I execute the job I am facing issues and job is going down with SYSOUT giving messages as below :
Code:
SYNCSORT LICENSED FOR XYZ Company                 
SYSIN :                                           
OPTION NULLOUT=RC4,VLSHRT                         
       *                                         
SORT FIELDS=COPY                                 
     *                                           
INCLUDE COND=(13,9,CH,EQ,C'NONVSAM--')           
        *                                         
OUTFIL VTOF,BUILD=(1:C' DELETE ',22,35,80:X)     
       *                                         
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT   
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT   
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT   
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT   
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000     
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE     
******************************* BOTTOM OF DATA ***


Any help or suggestion , please
Back to top
View user's profile Send private message
mahi

New User


Joined: 04 Apr 2006
Posts: 86
Location: Hyderabad

PostPosted: Wed Jun 29, 2011 4:38 pm
Reply with quote

Hi,
This might be due to the position of the Key words. Change the position of the key words(option etc) from column 1 to 4 or 3
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jun 29, 2011 4:44 pm
Reply with quote

You are showing cards in CSRDEL2 as starting in column 2, but the sysout says column 1.

So, for whatever reason, you are not showing us the cards the sort is using.

Wrong DSN. Wrong member name from that you are showing us.
Back to top
View user's profile Send private message
devd

New User


Joined: 19 Mar 2009
Posts: 11
Location: Chennai

PostPosted: Wed Jun 29, 2011 4:48 pm
Reply with quote

Yeah I got it correct. Basically the psotion of the keywords in the parm were not correct.I corrected it and ran the job. It ran thru successfully.

Thanks guys icon_smile.gif
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jun 29, 2011 4:50 pm
Reply with quote

How'd you get it not correct on the sysin and "correct" in the post?
Back to top
View user's profile Send private message
devd

New User


Joined: 19 Mar 2009
Posts: 11
Location: Chennai

PostPosted: Wed Jun 29, 2011 4:54 pm
Reply with quote

Bill

My bad.... silly error from my side when I was copying the sort card to a new member, got the position wrong and I wasted my time in doing a mini-research icon_sad.gif
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jun 29, 2011 4:59 pm
Reply with quote

Dash, not many people own up on these fora once they've done that, so you have my respect and best wishes for the future.

Does happen sometimes, dbz
Back to top
View user's profile Send private message
devd

New User


Joined: 19 Mar 2009
Posts: 11
Location: Chennai

PostPosted: Wed Jun 29, 2011 6:20 pm
Reply with quote

Thank you, Bill icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top