Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8629
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 Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us