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 avoid "VSAM OPEN RETURN CODE IS 168"

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Fri Jul 25, 2008 8:15 am    Post subject: How to avoid "VSAM OPEN RETURN CODE IS 168"
Reply with quote

Hi,

One of my jobs has been abended on a daily basis due to the following return code : "VSAM OPEN RETURN CODE IS 168"

In my JCL, we have a step02 which uses this command :

CEMT SET FI(DD) CLO DIS

Step03 having the command :

VERIFY FILE(DD)

I am getting abend in step03 always. In order to rectify the error, I am going in CICS screen and issue these commands :

CEMT I FILE (DD) CLO DIS
CEMT I FILE (DD) OPE ENA

and come out of the CICS screen. Then, again I am starting the job from step03 and it works fine.

How can I avoid repeating the same task always? Is there any way in JCL itself which I can code to avoid this error without going in CICS screen?
Back to top
View user's profile Send private message

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jul 25, 2008 1:02 pm    Post subject:
Reply with quote

Have you any delay between STEP02 and STEP03? In all likelihood, the VERIFY in STEP03 is executing before CICS has completed the CLOSE in STEP02.

Garry.
Back to top
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Fri Jul 25, 2008 2:27 pm    Post subject: Reply to: How to avoid "VSAM OPEN RETURN CODE IS 168&qu
Reply with quote

Hi,

What you say can be correct.
I am not sure there is any delay inbetween step2 and step3.
If that is case also, how can I overcome of it?

Thanks
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Jul 25, 2008 2:45 pm    Post subject:
Reply with quote

How is your job currently run ? manually or via a scheduling tool ?



Gerry
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jul 25, 2008 2:46 pm    Post subject:
Reply with quote

Hi,
Insert a step between which will cause a delay. This might be an Assembler program which issues STIMER WAIT,BINTVL=WAITTIME , or something that does some processing that is not dependent on the CICS file being closed.

Alternatively, make two jobs and have your scheduling package cause the delay.

To see if the idea is correct, try running the steps manually in two separate jobs. Submit the CLOSE first and, when you see it finished, submit the other job.

Regards,
Garry.
Back to top
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Mon Jul 28, 2008 9:03 pm    Post subject: Reply to: How to avoid "VSAM OPEN RETURN CODE IS 168&qu
Reply with quote

This is a scheduled job. We are using CA-7 for this.

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

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Jul 29, 2008 5:16 am    Post subject:
Reply with quote

Hi,

I'm sure CA-7 has a Batch Interface utility which you can use to delay STEP03 from starting immediately after STEP02 has completed just as Garry suggested earlier.

It's a long time since I've used CA7 or I should say UCC7


Gerry
Back to top
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Wed Jul 30, 2008 11:23 pm    Post subject:
Reply with quote

Can any one tell me what exactly I have to code in between the step2 and step3 so that step3 will be delayed.

Or if some batch interface utility in CA-7 can be used to delay step3 as what gcicchet mentioned.

Please mention the code or how to use the utility will be helpful for me.

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

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Jul 31, 2008 4:15 am    Post subject:
Reply with quote

Hi,

why not talk to your schedulers, they should be able to assist.


Gerry
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 Jul 31, 2008 5:50 am    Post subject:
Reply with quote

Hello,

Do keep in mind that you have a scheduling opportunity rather than a jcl opportunity. . .
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 31, 2008 11:48 am    Post subject:
Reply with quote

Select-mf wrote:
Can any one tell me what exactly I have to code in between the step2 and step3 so that step3 will be delayed.
Or if some batch interface utility in CA-7 can be used to delay step3 as what gcicchet mentioned.
Please mention the code or how to use the utility will be helpful for me.
Thanks.

As I seem to be saying more and more recently, this is a help forum rather than a 'get it done for free' forum. The responses to your thread are good ones, but have unfortunately left you with some work to do.

Do you not believe that your time would be better spent following the leads given rather than asking a complete solution be provided ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 31, 2008 11:54 am    Post subject:
Reply with quote

Quote:

rather than asking a complete solution be provided ?


which will lead to even more questions.
Back to top
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Thu Jul 31, 2008 6:45 pm    Post subject:
Reply with quote

Pardon me replying late.

Thanks for the information provided.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm


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