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
 

 

Need help in defining alt. index VSAM file in JECL (VM/CMS).

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

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Fri Jul 16, 2010 6:53 pm    Post subject: Need help in defining alt. index VSAM file in JECL (VM/CMS).
Reply with quote

Hi All,
I am new to VM/CMS and i am not sure where i should post this question.

I wrote a cobol program wherein it refers to a alternate index VSAM file. But when running i am getting the file status as 39. I am pretty sure that i am not giving proper JCL (JECL) syntax...can somebody help...

Code:
 
// EXEC   PROC=XXXXXX                                                 
// DLBL   FNCD043,'FNCD043.MST.K.DIV.CTL.PATH',,VSAM,CAT=YYYYYY
// DLBL   ZZZZZ,'ZZZZZ.DTL.E.DBNOTE.FEED',,VSAM,CAT=YYYYYYYY   
 


DLBL is the input file names. The file FNCD043 is the path file. In MVS, i know that we give path like
Code:
 
//VFILE         DD  DISP=SHR,DSN=MAIL CLUSTER
//VFILE1       DD  DISP=SHR,DSN=PATH


Can somebody help me with proper syntax or any other solution.
Thanks in advance.
Back to top
View user's profile Send private message

arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Sat Jul 17, 2010 11:46 am    Post subject:
Reply with quote

ignore this thread or deleate. i got the solution after few trail-error way..Thanks,
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: Sat Jul 17, 2010 1:16 pm    Post subject:
Reply with quote

Rather than delete the thread, would it not be better for you to post the solution so that it may help others in the future.
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Sat Jul 17, 2010 6:46 pm    Post subject:
Reply with quote

ok. i had to modify the job as i gave only the path which is wrong way of accessing alternate index file. Acutally we need to put VSAM cluster along with path and in the cobol program you need to point in file section to the VSAM cluster.



Code:

// EXEC   PROC=XXXXXX   
//DLBL  FNCD044 VSAM CLUSTER FILE                                             
// DLBL   FNCD043,'FNCD043.MST.K.DIV.CTL.PATH',,VSAM,CAT=YYYYYY
// DLBL   ZZZZZ,'ZZZZZ.DTL.E.DBNOTE.FEED',,VSAM,CAT=YYYYYYYY


and in cobol program

SELECT FNCD-FIL ASSING TO FNCD044
...
...
...
...
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: Sat Jul 17, 2010 11:20 pm    Post subject: Reply to: Need help in defining alt. index VSAM file in JECL
Reply with quote

Thank you for posting your solution icon_smile.gif

d
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 1 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 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
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm


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