View previous topic :: View next topic
|
Author |
Message |
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
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 |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
ignore this thread or deleate. i got the solution after few trail-error way..Thanks, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thank you for posting your solution
d |
|
Back to top |
|
|
|