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: 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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