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
 
undefined VSAM allocated files related to JCL PARM statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Peter Warren

New User


Joined: 08 Jul 2009
Posts: 4
Location: London, Uk

PostPosted: Tue Jun 14, 2011 4:03 pm    Post subject: undefined VSAM allocated files related to JCL PARM statement
Reply with quote

Can somebody please explain to me.

If I have a COBOL program that has two files defined :
FILEA ASSIGNED to DDNAME1 in JCL
FILEB ASSIGNED to DDNAME2 in JCL

and VSAM FILEC ASSIGNED to DDNAME3 - DDNAME3 isn't defined in the JCL but JCL does have a PARM statement. The program does not have any ACCEPT/LINKAGE or parameter input statements.

Does the FILEC become attached/assignedc to the PARM statement?

Many thanks.
Back to top
View user's profile Send private message

enrico-sorichetti

Moderator


Joined: 14 Mar 2007
Posts: 10475
Location: italy

PostPosted: Tue Jun 14, 2011 4:10 pm    Post subject: Reply to: undefined VSAM allocated files related to JCL PARM
Reply with quote

Code:
//<stepname> EXEC PGM=<pgmname>,PARM='<some parm string>'
//<ddname>       DD <the relevant dd tokens>


there is no relation whatsoever between the PARM string and a present/missing DD specification

but it would be nice to clarify better Your concerns
Back to top
View user's profile Send private message
Peter Warren

New User


Joined: 08 Jul 2009
Posts: 4
Location: London, Uk

PostPosted: Tue Jun 14, 2011 4:19 pm    Post subject:
Reply with quote

Sorry. In the program the FILEC is accessed but there is no DD associated with this file in the JCL.
There is a PARM on the JCL but no access in the program.

Somehow the PARM data seems to be read via a keyed read within the program and I am at a loss as to how.

any help would be much appreciated!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Tue Jun 14, 2011 4:30 pm    Post subject:
Reply with quote

the second paragraph in the procedure division provides the access
Back to top
View user's profile Send private message
Peter Warren

New User


Joined: 08 Jul 2009
Posts: 4
Location: London, Uk

PostPosted: Tue Jun 14, 2011 4:35 pm    Post subject:
Reply with quote

Very sorry guys - it turns out we have two programs with the same name in Endevor (different subsystems) and I have looked at the wrtong one in connection with the JCL.
Once again apologies.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 973
Location: Richmond, Virginia

PostPosted: Tue Jun 14, 2011 6:11 pm    Post subject:
Reply with quote

So your installation allows duplicate program names?

They may be separate in Endevor, but how about in a loadlib? You must maintain those separately as well.

A bit sloppy methinks.
Back to top
View user's profile Send private message
Peter Warren

New User


Joined: 08 Jul 2009
Posts: 4
Location: London, Uk

PostPosted: Tue Jun 14, 2011 6:24 pm    Post subject:
Reply with quote

Loadlibs are all at Endevor system/subsystem level. As we have upwards of 205 systems and > 65,000 COBOL programs (not to mention copybook, copycode, DBRM, CICS pgm, etc). I suppose individual teams/systems may use the same name. If I had checked the loadlib concatenation properly then I would have spotted the issue. Mea Culpa.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 973
Location: Richmond, Virginia

PostPosted: Tue Jun 14, 2011 6:26 pm    Post subject:
Reply with quote

Well, with 65K programs (probably 64K more than I've managed), I should backtrack on my easily said, but not so easily implemented comments.

I hereby do so.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compute statement with Cobol Z/os 5.2 Chetan Kumar COBOL Programming 2 Fri May 11, 2018 8:02 pm
No new posts Not able to export the VSAM cluster sandeep kumar302 JCL & VSAM 5 Fri May 04, 2018 12:42 pm
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm

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