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
 

 

To get changman package id

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Tue Feb 26, 2008 11:59 am    Post subject: To get changman package id
Reply with quote

Hi,

I need to get the the application neumonic and package number of the current changeman package component in an ISPF macro. I tried with ISPF variable package. But it does not seems to be correct one.

So when I go and edit a component from chgman 6 stage and 2 package option, change man will be opening the member in temporary dataset. From this edit session, when I invoke the ISPF macro, need to get the full package id. Is there any way for getting the same?

Thanking you in advance,
Prajesh
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Feb 26, 2008 8:19 pm    Post subject:
Reply with quote

Not sure what exactly you are doing - Are you writing ISPF macros to get package name?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Feb 26, 2008 8:25 pm    Post subject:
Reply with quote

if you are attempting to use the temp dataset name, this is available thru member or dataset command - ck the manual.

otherwise are you attempting to 'scrub' info from the display?

and like devzee, not sure what you are doing? what will you do with this 'info'?
Back to top
View user's profile Send private message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Wed Feb 27, 2008 9:50 am    Post subject:
Reply with quote

I have actually created an ISPF macro to open components with cursor point resultion. I was planning to extend the same for components in the same chgman package apart from standard libraries, by opening the memeber from chagman pds. But for this I need to get the package number and appl name to resolve the chgman PDS name. I was wondering whether there is any ISPF variable that contains the current package id as the chgman panels remebers the same once we type in an enter edit mode.

Hope this clarifies my intention.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Feb 27, 2008 10:51 am    Post subject:
Reply with quote

I dont know if there is any ISPF variable from which you can get the current package name.

An alternative: When you browse or edit the component the application name, package name are displayed along with component correct ? Not sure how it's configured at your site, if the component is like
Quote:
hlq1.hlw2.appmnemonic.somepackagenumber.type(component)

then you can easily get app mnemonic and package number from this
Back to top
View user's profile Send private message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Wed Feb 27, 2008 11:07 am    Post subject:
Reply with quote

Devzee,

Its configured in a diffrent way here. When we take the component from chgman. the naming convention here is like:
hq1.@racfid.DC(random number).T(random number).SRC.

I have the logic set for these components when we take these comonents from ISPF through chgman PDS as you have suggested.

Thanks,
Prajesh
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Feb 27, 2008 11:23 am    Post subject:
Reply with quote

If ur site is configured to create temporary datasets for editing then my approach will not work.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts What's plan, package, bind ? jackzhang75 DB2 2 Sun Feb 28, 2016 7:29 pm
No new posts Cobol DB2 package accessing differen... Mainak_Dalal DB2 1 Tue Jan 26, 2016 12:57 am
No new posts Can not find SQL statement of package... chaoj DB2 2 Wed Mar 11, 2015 12:00 pm


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