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 Usergroups Profile Log in to check your private messages Log in
 

 

SYNCSORT ERROR IN INCLUDE CONDITION WHILE SORTING

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT ERROR IN INCLUDE CONDITION WHILE SORTING
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: 2150
Location: At my coffee table

PostPosted: Sun Apr 27, 2008 11:13 pm    Post subject:
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    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 Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am


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