View previous topic :: View next topic
|
Author |
Message |
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
Or is otherwise retrievable?
Looking at the DSLIST memberlist screen (3.4 then M).
If I enter a command name of mine in the line command field of the member list and some data in the Prompt field, my command gets the dataset- and member name returned, but not the prompt data.
There are plenty of automatic variables for the dataset list screen, but none for the member list, except from those inherited from the dataset list.
Any ideas of how to pass parameters to a command from the member list screen? |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
I presume you're talking about this -
Code: |
Name Prompt Alias-of Size TTR AC AM RM
_________ SMF1415 000042A8 000004 00 31 24
_________ TEMPNAME 000042A8 00000C 00 31 24 |
The primary use of the PROMPT here is for the RENAME function, where you supply a new member name. For example -
Code: |
Name Prompt Alias-of Size TTR AC AM RM
_________ SMF1415 000042A8 000004 00 31 24
r________ TEMPNAME test 000042A8 00000C 00 31 24 |
Just for the H of it I tried one of my commands -
Code: |
Name Prompt Alias-of Size TTR AC AM RM
_________ SMF1415 000042A8 000004 00 31 24
lmattr___ TEMPNAME nomap 000042A8 00000C 00 31 24 |
The generated command appeared to be lmattr 'data-set-name(TEMPNAME)'
I'd bet a CLIST or Rexx exec could obtain the PROMPT text, or even a properly written line mode command, but there does not seem to be a way to get the prompt text to a command line. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
Hi steve-myers, yes, I am aware of the standard use for the prompt field. My challenge is that I must pass data to a REXX command run from the member list line command field. I have managed to do so by parsing the ZSCREENI variable, but that is clumsy and relies on the screen format not changing. |
|
Back to top |
|
|
|