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

SYNCSORT ERROR IN INCLUDE CONDITION WHILE SORTING


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

New User


Joined: 22 Mar 2008
Posts: 39
Location: bangalore

PostPosted: Sun Apr 27, 2008 8:07 pm
Reply with quote

Please help me out on doing SORT using Include condition. I'm trying to copy the records which have 123 in the second field.

Here is the program i am using:

Code:
   
//SORT1    EXEC PGM=SORT                                                     
//SYSOUT     DD SYSOUT=*                             
//SORTIN     DD DSN=...,DISP=SHR
//SORTOUT    DD SYSOUT=*                             
//SYSIN      DD *                                   
   SORT FIELDS=COPY                                 
   INCLUDE COND=(4,3,CH,EQ,C'123')                     
/*             


Here's the input:

Code:

125 456 354 01
156 789 435 02
456 123 456 03
459 123 194 99
555 789 123 22
785 456 756 01
895 456 876 08
964 123 492 01
125 456 354 01
156 789 435 02
456 123 456 03
459 123 194 99
555 789 123 22
785 456 756 01


Syntax/Usage error has been edited - Kevin.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


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

PostPosted: Sun Apr 27, 2008 11:13 pm
Reply with quote

Other than being a byte off (based on your input), what is the error?
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 Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Error when install DB2 DB2 2
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top