Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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
 
COUNT FROM() RCnn

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: COUNT FROM() RCnn
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    Post subject:
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 Moderator


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

PostPosted: Wed Sep 17, 2008 2:18 am    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Wed Sep 17, 2008 9:28 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us