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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
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: 6968
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: 965
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: 965
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 VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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