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 

VSAM Status code 96

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Thu Apr 19, 2007 7:03 am    Post subject: VSAM Status code 96 Reply with quote

I have defined the INPUT-FILE in the COBOL program as shown below....
Code:

    SELECT INPUT-FILE         ASSIGN TO FILE1
        ORGANIZATION IS INDEXED                         
        ACCESS IS DYNAMIC                               
        RECORD KEY IS A-PRIMEKEY               
        ALTERNATE RECORD KEY IS A-ALTERNATIVE-KEY
       FILE STATUS IS VSAM-STATUS.                     

And I using this JOB to run the program pgm1 as shown below...
Code:


//STEP1 EXEC PGM=pgm1
//FILE1 DD DSN=INPUT.FILE1,DISP=SHR,
//FILE2 DD DSN=OUTPUT.FILE2,DISP=SHR
//FILE3 DD DSN=OUTPUT.FILE3,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//


when I run this job I am getting VSAM-STATUS as 96. I found that the 96 will come when
No DD statement for the file. can anyone tell me when I am wrong in the above JCl...



Thanks in advance.

suma
Back to top
View user's profile Send private message
hariavinash
Beginner


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Thu Apr 19, 2007 10:54 am    Post subject: Reply with quote

There is a COMMA after the DISP parm. take that out.

cheers
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Apr 19, 2007 1:58 pm    Post subject: Reply with quote

the extra comma would make the job NOT RUN - JCL ERROR. The job has run so this is a partial cut and paste and maybe the clue has not been pasted? I'm not that familiar with VSAM and COBOL so cannot help.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Apr 19, 2007 3:03 pm    Post subject: Reply with quote

does INPUT.FILE1 exist? is it catalogued?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Apr 19, 2007 3:16 pm    Post subject: Reply with quote

suma,

Ok The error you are getting is because your pgm is coded to access the alternate index. If you are planning to use the alternate index you need to provide path in the JCL.

Search the forum for all the words "alternate path" and you will find a very good example

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


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Fri Apr 20, 2007 1:49 am    Post subject: Reply with quote

Thanks Kolasu for your help..




your suggestion holds good.. Here the real problem was this VSAM file was creating a DD statement for itself.

After looking into the spool I found that there I have to use assigned DD name.
Can anybody tell me why this happened!!??

and as per suggestion I used PATH dataset, now I am getting error code 95!.
Please help in this regard.


Thanks
suma.
Sad
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Apr 20, 2007 4:53 am    Post subject: Reply with quote

suma,

1. Learn to spell my name correctly.
2. show us the JCL where are you allocated the path to a ddname.
3. Show us all the error messages

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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