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

undefined VSAM allocated files related to JCL PARM statement


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 14, 2011 4:10 pm
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
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
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
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

Senior Member


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

PostPosted: Tue Jun 14, 2011 6:11 pm
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
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

Senior Member


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

PostPosted: Tue Jun 14, 2011 6:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Allocated cylinders of a dataset DB2 12
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top