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

How to set "RC 8" for Empty file using SORT?


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

New User


Joined: 15 Nov 2007
Posts: 4
Location: chennai

PostPosted: Tue Jan 12, 2010 8:45 pm
Reply with quote

Hi,

Currently we are using FILEAID to identify the empty files and set RC 08. We wants to replace the FILEAID with SORT but need to get the same RC 08 for empty file check using Sort.

Please suggest ways..

Thanks in Advance...
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: Tue Jan 12, 2010 10:54 pm
Reply with quote

DFSORT/ICETOOL can set the RC to 04, 12 or 16, not to 08. Why won't RC 04, 12 or 16 work as well as 08?
Back to top
View user's profile Send private message
CHANDAN KAPOOR

New User


Joined: 12 Apr 2008
Posts: 36
Location: NOIDA

PostPosted: Tue Jan 12, 2010 11:07 pm
Reply with quote

You can use ICETOOL utility to set the RC to whatever you like .
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jan 12, 2010 11:08 pm
Reply with quote

Hi Frank,

A strong desire to keep the existing JCL asis. . . icon_smile.gif

d
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: Tue Jan 12, 2010 11:29 pm
Reply with quote

Quote:
You can use ICETOOL utility to set the RC to whatever you like .


Really? Please show us how to have ICETOOL set RC 08.

(I'm only the inventor/developer of ICETOOL so why would I know how it works.) icon_rolleyes.gif
Back to top
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Wed Jan 13, 2010 1:17 pm
Reply with quote

hi,

i think it can done with combination of icetool & idcams
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jan 13, 2010 1:45 pm
Reply with quote

Quote:
(I'm only the inventor/developer of ICETOOL so why would I know how it works.)


maybe somebody is trying to found a new profession along the line of the useless ones like literary, art, movie critic
the IT critic

/ anectode on
a literary critic was giving a conference on Isaac Asimov writings, and was explaining their meaning .
Asimov, disguised in the last rows,
stood up to explain that it was not the meaning intended when he wrote the book, telling that he was the author
the quick and shameless speaker' s reply was...
the fact that You are the author does not mean that You know the meaning of what You wrote
(*) not the exact wording, but quite similar

meditate Frank meditate icon_biggrin.gif
Back to top
View user's profile Send private message
Bathrinarayanan

New User


Joined: 15 Nov 2007
Posts: 4
Location: chennai

PostPosted: Wed Jan 13, 2010 4:14 pm
Reply with quote

Hi Frank,

By changing the RC 08 to other return codes will result changing the various proclibs and steps. And also we have to change condition code table in Jobtrac to avoid CC check. It will be tedious task to us. That's why expecting for RC 08.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jan 13, 2010 4:26 pm
Reply with quote

Quote:
It will be tedious task to us.


welcome to the world of IT.
and so what? you have to do it anyway.

sometimes different vendors intentionally make their products incompatible.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jan 13, 2010 4:39 pm
Reply with quote

You cannot expect Frank and IBM to change ICETOOL and DFSORT behavior to satisfy Your needs!

review Your requirement in order to change the tool
in this case IDCAMS is another possible way out of it with something along the lines of

Code:
 PRINT INDATASET(<yourddname>) COUNT(1)
 IF LASTCC = 0 THEN -
  SET MAXCC = <dataset not empty return code>
 ELSE -
  SET MAXCC = <dataset not empty return code>


anyway look at the manuals for more insight of idcams behavior
the whole dfsms bookshelf
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/DGT2BK71

the idcams manual itself
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I260/CCONTENTS?SHELF=DGT2BK71&DN=SC26-7394-07&DT=20080123101112
for the whole IDCAMS shebang

or ...
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I260/29.0?SHELF=DGT2BK71&DT=20080123101112
for the PRINT syntax

and
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I260/2.0?SHELF=DGT2BK71&DT=20080123101112
for the IF THEN ELSE logic
Back to top
View user's profile Send private message
Bathrinarayanan

New User


Joined: 15 Nov 2007
Posts: 4
Location: chennai

PostPosted: Wed Jan 13, 2010 5:04 pm
Reply with quote

Hi All,

Thanks for all your replies and suggestions.

Time being I used the IDCAMS as Enrico suggested and it works fine.
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 Jan 13, 2010 10:19 pm
Reply with quote

Quote:
maybe somebody is trying to found a new profession along the line of the useless ones like literary, art, movie critic
the IT critic


Actually, I find the reviews from some movie critics to be quite useful. icon_smile.gif

Quote:
By changing the RC 08 to other return codes will result changing the various proclibs and steps. And also we have to change condition code table in Jobtrac to avoid CC check. It will be tedious task to us. That's why expecting for RC 08.


Interesting - so you specifically check for RC 08 rather than checking for RC > 0? Thanks for the information. But I can't help but wonder why RC 08 was chosen.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 13, 2010 10:53 pm
Reply with quote

Hello,

Quote:
But I can't help but wonder why RC 08 was chosen.
Maybe because FileAid was used and returns 08 for "empty". . .
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 Jan 13, 2010 11:13 pm
Reply with quote

Oh, I get it. I didn't realize FileAid used RC 08. Looking back, I see the OP said that in the first post but I ignored it.
Back to top
View user's profile Send private message
CHANDAN KAPOOR

New User


Joined: 12 Apr 2008
Posts: 36
Location: NOIDA

PostPosted: Thu Jan 14, 2010 11:42 am
Reply with quote

Hi Frank,

I think ICETOOL can do the purpose

S1 EXEC PGM=ICETOOL
SYSPRINT DD SYSOUT=*
TOOLMSG DD SYSOUT=*
DFSMSG DD SYSOUT=*
IN DD DSN=Dataset,DISP=SHR
TOOLIN DD DSN=CTLCARD ,DISP=SHR
In CTLCARD If we write COUNT FROM(IN) EMPTY RC8

then If the dataset is empty then it can set RC as 8 of this step.

Please Do correct me if Im wrong.

Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jan 14, 2010 12:04 pm
Reply with quote

Frank Yeager wrote:
DFSORT/ICETOOL can set the RC to 04, 12 or 16, not to 08.

Frank Yeager wrote:
I'm only the inventor/developer of ICETOOL so why would I know how it works

CHANDAN KAPOOR wrote:
then If the dataset is empty then it can set RC as 8 of this step.


and I thought this was the best comment made to date:
RE: how can you do something that you can not do?
som_infotech wrote:
Yes I know its not following the rules, but I want it to happen.


CHANDAN KAPOOR wrote:
Please Do correct me if Im wrong.


Chandon Kapoor, I think that you may receive some correction


oh, oh, ohhhh! I do love this forum.
and I believe I followed all the rules of PC...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 14, 2010 8:18 pm
Reply with quote

Hi Dick,

Quote:
and I believe I followed all the rules of PC...
Looks like it icon_smile.gif It has been more than 8 hours and no word from the PC police. . .

Chandon Kapoor,
Have you read any of the replies. . . icon_confused.gif

Quote:
I think ICETOOL can do the purpose
If you post something like this, you need to post a working example - showing the actual sysout.

It doesn't much matter what we think, it matters what the system will do.
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: Thu Jan 14, 2010 11:05 pm
Reply with quote

Chandor,

You're wrong! If you had actually tried your job or looked up the COUNT operator in the DFSORT book, you would have found out for yourself that you're wrong. Here's what you'd get with that control statement:

Code:

          COUNT FROM(IN) EMPTY RC8                     
                               $                       
ICE604A 0 ERROR IN KEYWORD, PARAMETER, OR DELIMITER   
ICE602I 0 OPERATION RETURN CODE:  12                   


RC8 is NOT a valid keyword for COUNT. RC4 is valid for setting RC=4. RC=12 is the default. RC8 is NOT supported.

Please try running any jobs to make sure they work BEFORE posting so you won't waste peoples' time. Actually, we have two DFSORT developers answering questions on this board, so we really don't need your "help".
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Jan 15, 2010 3:53 am
Reply with quote

Quote:
Yes I know its not following the rules, but I want it to happen.

I want my Powerball numbers to win this week too, but the gods of chance have thusfar eluded my desires. icon_lol.gif
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: Fri Jan 15, 2010 4:19 am
Reply with quote

Quote:
Yes I know its not following the rules, but I want it to happen.


Sounds like a job for the famous DWIW instruction (Do what I want). icon_lol.gif
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: Sat Oct 30, 2010 2:04 am
Reply with quote

DFSORT's ICETOOL now supports RC8 for COUNT with z/OS DFSORT V1R10 PTF UK90025 or z/OS DFSORT V1R12 PTF UK90026 (Oct,2010).

For complete details on the new functions for DFSORT and DFSORT's ICETOOL available with the Oct, 2010 PTF, see:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000242
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top