MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Check for the emptiness of the ps file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Mon Mar 13, 2006 10:03 am    Post subject: Check for the emptiness of the ps file Reply with quote

Hi,

My following job is abending with RC=12.

Code:

//CAMS02  EXEC PGM=IDCAMS                           
//FILE0I    DD DSN=TXXXXX.XXXXX.XXXX1,DISP=SHR     
//FILE0O    DD DUMMY                               
//SYSPRINT  DD SYSOUT=*                             
//SYSIN     DD *                                   
  REPRO -                                           
  INDATASET(FILE0I) -                               
  OUTDATASET(FILE0O) -                             
  COUNT(1)                                         
/*                                                 
//                                                 


The SYSPRINT shown the below:

Code:

IDCAMS  SYSTEM SERVICES                                           
                                                                       
  REPRO -                                                             
  INDATASET(FILE0I) -                                                 
  OUTDATASET(FILE0O) -                                                 
  COUNT(1)                                                             
IKJ56228I DATA SET FILE0O NOT IN CATALOG OR CATALOG CAN NOT BE ACCESSED
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0                             
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12                     
                                                                       
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12     


I don't know why it is considering the DUMMY as a file and abending with RC=12. Please help.

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Mon Mar 13, 2006 10:16 am    Post subject: Reply with quote

mf_user,

I already mentioned twice about searching before posting. yet you seem to forget that and post the questions. This will be your last warning. check this link which discuss about empty file checking.

http://www.mvsforums.com/helpboards/viewtopic.php?t=5319

Quote:

I don't know why it is considering the DUMMY as a file and abending with RC=12. Please help.


When you specify INDATASET and OUTDATASET you need to specify the exact file within the parenthsis. if you want to specify a DD name then use INFILE and OUTFILE.

Check this link for detailed explanation of REPRO command

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1v403/3.25?DT=19990113080956

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Mon Mar 13, 2006 10:31 am    Post subject: Reply with quote

Thanks a lot Kolusu. That was new information to me.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group