View previous topic :: View next topic
|
Author |
Message |
Prajesh_v_p
Active User
Joined: 24 May 2006 Posts: 133 Location: India
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Not sure what exactly you are doing - Are you writing ISPF macros to get package name? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Prajesh_v_p
Active User
Joined: 24 May 2006 Posts: 133 Location: India
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
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 |
|
|
Prajesh_v_p
Active User
Joined: 24 May 2006 Posts: 133 Location: India
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
If ur site is configured to create temporary datasets for editing then my approach will not work. |
|
Back to top |
|
|
|