IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 8797
Location: Welsh Wales

PostPosted: Sat Jul 17, 2010 1:16 pm
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
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jul 17, 2010 11:20 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top