Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
S0C 7 from SORT command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Mon Sep 03, 2007 7:21 pm    Post subject: S0C 7 from SORT command
Reply with quote

Hi Every body
the following codine it shown S0C 7 error. how to resolve why it was came
Please advise me

Code:

//STEP1 EXEC PGM=SORT                               
//SYSOUT   DD SYSOUT=*                     
//SORTIN DD DSN=mov123.PS.COBOL,DISP=SHR                             
//SORTOUT DD DSN=mov123.PS.SSTO,DISP=(MOD,CATLG,DELETE),             
//           SPACE=(CYL,(1,2),RLSE,MXIG),UNIT=SYSDA
//SYSIN DD *                                                         
  SORT FIELDS=(1,8,CH,A)                                               
  SUM FIELDS=(10,3,PD)                                                 
/*                                                                   
//
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Sep 03, 2007 7:27 pm    Post subject:
Reply with quote

Simple, find the non-numeric value in the SUM FIELDS=(10,3,PD).......
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Sep 03, 2007 9:56 pm    Post subject:
Reply with quote

Here's a DFSORT/ICETOOL job that will identify the invalid PD value(s) in TOOLMSG:

Code:

//S1    EXEC  PGM=ICETOOL                             
//TOOLMSG   DD  SYSOUT=*                             
//DFSMSG    DD  SYSOUT=*                             
//IN DD DSN=...  input file     
//TOOLIN DD *                                         
VERIFY FROM(IN) ON(10,3,PD)                           
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Mon Sep 03, 2007 11:14 pm    Post subject:
Reply with quote

The OP has a Variable length output, probably input. since he was sorting on the RDW (or RWD or what ever) he probably is off by 4 on his PD field. 14,3,PD
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us