Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
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: 6966
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: 962
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: 962
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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us