View previous topic :: View next topic
|
Author |
Message |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
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 |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Just check your JESYSMSG whether it is deleted or not..
Regards
R KARTHIK |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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 |
|
|
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
Thanks. But some time it is available for some time when we scan the job for the next run. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
then some time the file is not deleted ie STEP110 probably flushed and the file is still availbale.
Gerrt |
|
Back to top |
|
|
|