Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to set "RC 8" for Empty file using SORT?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to set "RC 8" for Empty file using SORT?
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 Moderator


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

PostPosted: Tue Jan 12, 2010 10:54 pm    Post subject:
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    Post subject: Reply to: How to set "RC 8" for Empty file using S
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

Site Director


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

PostPosted: Tue Jan 12, 2010 11:08 pm    Post subject: Reply to: How to set "RC 8" for Empty file using S
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 Moderator


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

PostPosted: Tue Jan 12, 2010 11:29 pm    Post subject:
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    Post subject: Reply to: How to set "RC 8" for Empty file using S
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed Jan 13, 2010 1:45 pm    Post subject: Reply to: How to set "RC 8" for Empty file using S
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    Post subject: Reply to: How to set "RC 8" for Empty file using S
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed Jan 13, 2010 4:39 pm    Post subject: Reply to: How to set "RC 8" for Empty file using S
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
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/DGT2BK71

the idcams manual itself
http://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 ...
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I260/29.0?SHELF=DGT2BK71&DT=20080123101112
for the PRINT syntax

and
http://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    Post subject: Reply to: How to set "RC 8" for Empty file using S
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 Moderator


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

PostPosted: Wed Jan 13, 2010 10:19 pm    Post subject:
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

Site Director


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

PostPosted: Wed Jan 13, 2010 10:53 pm    Post subject:
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 Moderator


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

PostPosted: Wed Jan 13, 2010 11:13 pm    Post subject:
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    Post subject: Reply to: How to set "RC 8" for Empty file using S
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    Post subject:
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

Site Director


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

PostPosted: Thu Jan 14, 2010 8:18 pm    Post subject:
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 Moderator


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

PostPosted: Thu Jan 14, 2010 11:05 pm    Post subject:
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: 1238
Location: Richfield, MN, USA

PostPosted: Fri Jan 15, 2010 3:53 am    Post subject:
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 Moderator


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

PostPosted: Fri Jan 15, 2010 4:19 am    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us