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

COUNT FROM() RCnn


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

Active User


Joined: 20 Dec 2005
Posts: 137
Location: Denmark

PostPosted: Mon Sep 15, 2008 1:16 pm
Reply with quote

COUNT is great to control your JCL-flow like this:

Code:
//STEP03   EXEC PGM=ICETOOL
.
.
//TOOLIN   DD *                         
.
.
  COUNT FROM(DATA) NOTEMPTY RC4         
.
.
//IFTEST  IF (STEP03.RC EQ 4) THEN
.
.
//ENDTEST


Suggestion: Would be great to have more options for the RC keyword. Right now RC4 is really the only option, as with RC16 you don't know if it's the COUNT or another statement that gave RC=16.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Sep 15, 2008 9:05 pm
Reply with quote

Claes Norreen wrote:
ight now RC4 is really the only option, as with RC16 you don't know if it's the COUNT or another statement that gave RC=16.


Claes Norreen,

Count can also be used to set RC=12 RC=4, or RC=0 based on meeting criteria for the number of records in a data set.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed Sep 17, 2008 2:18 am
Reply with quote

Quote:
Would be great to have more options for the RC keyword.


Exactly what other options did you have in mind and what would you use them for?
Back to top
View user's profile Send private message
Claes Norreen

Active User


Joined: 20 Dec 2005
Posts: 137
Location: Denmark

PostPosted: Wed Sep 17, 2008 7:58 pm
Reply with quote

Frank,

I have used COUNT ... RC4 for controlling conditional executing of job steps with the JCL-built-in functionality IF ... THEN, like I illustrated in my first post.

However, if I would like to execute different steps depending on different COUNT ... RCs, I cannot differentiate between them when I have only one option for RC, namely RC4.

RC12 (not RC16 as I stated earlier - sorry) is not usable, as other ICETOOL-statements in the same step could result in RC12. Thus RC12 is useless for my purpose.

Of course, I could code another step containing one the COUNT, but I really like having as few steps as possible.

I suggest RC1 though RC12 could be used in the future.

Sorry, that I was a little unclear previously. And I hope you see my point now?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed Sep 17, 2008 9:28 pm
Reply with quote

Yes, I understand what you're asking for now. I'll add it to the list of candidates for future enhancements to DFSORT's ICETOOL.
Back to top
View user's profile Send private message
Claes Norreen

Active User


Joined: 20 Dec 2005
Posts: 137
Location: Denmark

PostPosted: Wed Sep 17, 2008 10:38 pm
Reply with quote

Thanks.
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 To get the count of rows for every 1 ... DB2 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Count the number of characters in a f... CA Products 1
Search our Forums:

Back to Top