View previous topic :: View next topic
|
Author |
Message |
Claes Norreen
Active User
Joined: 20 Dec 2005 Posts: 137 Location: Denmark
|
|
|
|
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 |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
Claes Norreen
Active User
Joined: 20 Dec 2005 Posts: 137 Location: Denmark
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
Claes Norreen
Active User
Joined: 20 Dec 2005 Posts: 137 Location: Denmark
|
|
|
|
Thanks. |
|
Back to top |
|
|
|