Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
File not available after succesful execution

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 70
Location: India

PostPosted: Tue Jul 22, 2008 8:17 pm    Post subject: File not available after succesful execution
Reply with quote

The file which always used to be available after successful execution is not available now.

After successful execution, for the next run i used to do scan of test Jcl using 'JJ' option, now when i do it doesn't display "File already catalogued".


The code for it is ---

In Proc---

//STEP010 EXEC PGM=IEFBR14
//RESTART DD DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(1)),
// VOL=REF=PROD.RSTART,
// DSN=&PROD1..AGH.PROTECT.RESTART.SNDD9097K
_________________


In Test JCL--


//STEP010.RESTART DD VOL=REF=

At the end of Proc--

//*********************************************************
//* DELETE THE RESTART CATALOG ENTRY
//*********************************************************
//*
//STEP110 EXEC PGM=IEFBR14,COND=(0,NE)
//DEL DD DISP=(MOD,DELETE,DELETE),
// DSN=&PROD1..AGH.PROTECT.RESTART.SNDD9097K
**************************** Bottom of Data ***************

When this job was executed the RC code for both the steps was 0.

Please help.


Thanks.
Back to top
View user's profile Send private message
References
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 180
Location: Chennai

PostPosted: Tue Jul 22, 2008 8:52 pm    Post subject: Reply to: File not available after succesful execution
Reply with quote

Just check your JESYSMSG whether it is deleted or not..

Regards
R KARTHIK
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 9198
Location: 221 B Baker St

PostPosted: Tue Jul 22, 2008 10:07 pm    Post subject:
Reply with quote

Hello,

What help is needed?

Is this the same queston you were working with yesterday? You should reply to your topic rather than start a new topic for the same discussion.

Your jcl will jcl error so we cannot be much help. The dsn used is invalid in both sets of jcl.
Back to top
View user's profile Send private message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 70
Location: India

PostPosted: Tue Jul 22, 2008 11:01 pm    Post subject: Reply to: File not available after succesful execution
Reply with quote

Karthik,

It is retained in JESYSMSG.

Dick,

Yesterday's question was about same step but the purpose was different. I was trying to know the syntax.

Today it is about absence of file.

Could you please let me know what is wrong in DSN?

Would appreciate.

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 9198
Location: 221 B Baker St

PostPosted: Tue Jul 22, 2008 11:56 pm    Post subject:
Reply with quote

Hello,

Quote:
Could you please let me know what is wrong in DSN?
Is there some reason you cannot simply run a jcl check on your system?

I do not understand how you have problems with whether a dataset exists when the jcl will not allow the job to run in the first place. . .

Did you post jcl other than what is really being used? As a hint/suggestion, you should never type jcl/control statements/code in your posts. It should be posted via copy/paste usng the "Code" tag.

Run your jcl and post back here the output from the job. If there are questions, someone will be able to clarify.
Back to top
View user's profile Send private message
arcvns

Senior Member


Joined: 17 Oct 2006
Posts: 997
Location: Chennai, India

PostPosted: Wed Jul 23, 2008 7:06 am    Post subject:
Reply with quote

In STEP110, you are deleting the same dataset by giving DISP=(MOD,DELETE,DELETE) . Then it is not supposed to be available after successful excution of the job

Thanks,
Arun
Back to top
View user's profile Send private message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 70
Location: India

PostPosted: Thu Jul 24, 2008 2:56 pm    Post subject:
Reply with quote

Thanks. But some time it is available for some time when we scan the job for the next run.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 696

PostPosted: Thu Jul 24, 2008 3:38 pm    Post subject:
Reply with quote

Hi,

then some time the file is not deleted ie STEP110 probably flushed and the file is still availbale.


Gerrt
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1