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

File not available after succesful execution


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
meenakshi_forum
Warnings : 1

Active User


Joined: 27 May 2008
Posts: 121
Location: India

PostPosted: Tue Jul 22, 2008 8:17 pm
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
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Tue Jul 22, 2008 8:52 pm
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

Moderator Emeritus


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

PostPosted: Tue Jul 22, 2008 10:07 pm
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: 121
Location: India

PostPosted: Tue Jul 22, 2008 11:01 pm
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

Moderator Emeritus


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

PostPosted: Tue Jul 22, 2008 11:56 pm
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
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Jul 23, 2008 7:06 am
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: 121
Location: India

PostPosted: Thu Jul 24, 2008 2:56 pm
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: 1702
Location: Australia

PostPosted: Thu Jul 24, 2008 3:38 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top