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

Setting Return code after performing SORT operation


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Hari Kumar

New User


Joined: 28 Jul 2005
Posts: 19

PostPosted: Mon Sep 03, 2007 8:01 pm
Reply with quote

Hi All,

I want to check first record of the file. If position 7 is contains character H then i want to set return code as 111 otherwise i want to set return code as 222.

Please provide sort step for performing this operation

File

AAAAAAHAAAA
BBBBBBDAAAA
CCCCCDAAAA

I want to set return code as 111
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: Mon Sep 03, 2007 8:31 pm
Reply with quote

I think that if you looked at the DFSORT Application Programming Guide you would find that it is not possible to choose those values....
You could test and return RC0 vs RC4 (or 12) with ICETOOL's COUNT Operator after including or omitting the special record....
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 -> DFSORT/ICETOOL

 


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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top