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
 

 

LPA:SETPROG command to add a DSN without specifying Module

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Bharath K

New User


Joined: 07 Dec 2014
Posts: 1
Location: India

PostPosted: Sun Jun 21, 2015 6:17 am    Post subject: LPA:SETPROG command to add a DSN without specifying Module
Reply with quote

Hi all,

I tried to dynamically add a dataset to LPA using SETPROG command but it failed

/SETPROG LPA,ADD,DSNAME=abc.xyz,FORCE=YES

I need to add a complete Volume and not a module name alone

So i request you to help

Thanks & Regards,
Bharath K
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Sun Jun 21, 2015 7:09 am    Post subject:
Reply with quote

Quote:
I tried to dynamically add a dataset to LPA using SETPROG command but it failed

/SETPROG LPA,ADD,DSNAME=abc.xyz,FORCE=YES

I need to add a complete Volume and not a module name alone

So i request you to help
What does "it failed" mean? Did the command not run? Did the command produce an error? Did the command execute but not do what you expected? We're not going to be able to help you unless you start providing actual information and not general statements!

What do you mean by "complete volume"? The LPA is defined in terms of load libraries and load modules -- you don't define LPA entries in terms of "complete volumes" since a volume to z/OS is a tape volume or an entire disk volume.

Have you read the MVS Commands manual on the SETPROG command? If so, did you notice that FORCE=YES is used ONLY with the DELETE option?
Back to top
View user's profile Send private message
steve-myers

Active User


Joined: 30 Nov 2013
Posts: 461
Location: The Universe

PostPosted: Sun Jun 21, 2015 9:23 am    Post subject:
Reply with quote

Of course it's going to fail.

If you bothered to read the documentation you would have discovered you can only add modules. The LPA libraries are defined and read as an entity during a system start.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


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