Page 1 of 2

how to get the messages in the panel displayed?

PostPosted: Mon Dec 08, 2014 8:31 am
by wuyunjiefov
Dear all, i 'm a new guy for REXX/CLIST, i want to catch the messages in the panel displayed while i access a lib by typing 3.4.
Pls guide.

e.g. how can i get the library 'IBMUSER.TEST.COPY' when i typing the REXX routine in the command line?

VIEW              IBMUSER.TEST.COPY                         Row 00001 of 00006
Command ===> REXX                                                       Scroll ===> CSR 
           Name     Prompt       Size   Created          Changed          ID   
_________ ATTR                     40  2007/05/30  2007/05/30 07:18:05  IBMUSER
_________ CUSTMAS                   9  2007/05/29  2007/05/29 22:51:50  IBMUSER
_________ ERRPARM                   6  2007/05/29  2007/05/29 22:54:27  IBMUSER
_________ INVCTL                    5  2007/06/07  2007/06/07 06:12:02  IBMUSER
_________ INVOICE                  13  2007/05/29  2007/05/29 18:06:54  IBMUSER
_________ PRODUCT                   7  2007/05/29  2007/05/29 22:49:35  IBMUSER

Re: how to get the messages in the panel displayed?

PostPosted: Mon Dec 08, 2014 10:54 am
by enrico-sorichetti
while the requirement is clear to You,
unfortunately You were not able to describe it to us in a understandable way :mrgreen:

Re: how to get the messages in the panel displayed?

PostPosted: Mon Dec 08, 2014 11:42 am
by wuyunjiefov
haha. ok.

i want to get the current PDS/library that i'm viewing by REXX. LIKE 'IBMUSER.TEST.COPY'.

VIEW IBMUSER.TEST.COPY Row 00001 of 00006
Command ===> REXX Scroll ===> CSR
Name Prompt Size Created Changed ID
_________ ATTR 40 2007/05/30 2007/05/30 07:18:05 IBMUSER

I tried to vget the variable form the default "VGET (ZDSN) PROFILE" , but it was displayed as empty.

Re: how to get the messages in the panel displayed?

PostPosted: Mon Dec 08, 2014 11:58 am
by enrico-sorichetti
haha

nothing to laugh about :evil:

still clear as mud ...

You are in motion 3.4 displaying the dataset list ...
after that what is that You want to do ?

in case You are EDITING/VIEWING A PDS member
from inside an edit macro You can get the DATASET and the MEMBER names

keep explaining

Re: how to get the messages in the panel displayed?

PostPosted: Mon Dec 08, 2014 12:25 pm
by wuyunjiefov
My action is before i EDITING/VIEWING A PDS member, just come into the library, will not come into the member. Then i will type a designed REXX named 'subro' in the command line, i want the rexx to display the library.

Re: how to get the messages in the panel displayed?

PostPosted: Mon Dec 08, 2014 8:13 pm
by prino
Action 1: The user will do this or that
Response 1: I'm expecting ...

Action 2: Now the user will do
Response 2: I'm expecting ...

Language is obviously a big problem for you, so follow the above instructions, maybe then we can make sense of your mud...

Re: how to get the messages in the panel displayed?

PostPosted: Mon Dec 08, 2014 9:10 pm
by Peter_Mann
wuyunjiefov wrote:haha. ok.

i want to get the current PDS/library that i'm viewing by REXX. LIKE 'IBMUSER.TEST.COPY'.

VIEW IBMUSER.TEST.COPY Row 00001 of 00006
Command ===> REXX Scroll ===> CSR
Name Prompt Size Created Changed ID
_________ ATTR 40 2007/05/30 2007/05/30 07:18:05 IBMUSER

I tried to vget the variable form the default "VGET (ZDSN) PROFILE" , but it was displayed as empty.

This is still not clear why since the name of the PDS/library is in the display you provide, unless you're going to do some processing with the PDS,
I think while you're editing or viewing the file its stored on the shared variable pool, I'm not 100% sure but you may want to try
VGET (ZDSN) SHARED

Re: how to get the messages in the panel displayed?

PostPosted: Mon Dec 08, 2014 9:20 pm
by enrico-sorichetti
the <panel> command entered in the command line will not have available anything

the <line> command entered in front of a dataset will receive as argument the dataset name

just try something along the lines of the snippet I posted here
clist-rexx/topic6830.html?hilit=parse

you will see what happens for <line> commands

Re: how to get the messages in the panel displayed?

PostPosted: Tue Dec 09, 2014 1:23 am
by NicC
Please use the code tags when posting code/screen shots/data or anything with contiguous spaces or requiring a fixed font. You managed to get colours in (unnecessarily) using the code tags is a similar process but you cannot use other attributes within code tags, which generally is not a problem. I hve encoded your post for you, this time.

Please press F1 key when in ISPF - lots of useful info there inclusing the answer to your question. The manual has even more info. It was written so that you could learn to use the facilities offered by ISPF.

Re: how to get the messages in the panel displayed?

PostPosted: Tue Dec 09, 2014 9:09 am
by wuyunjiefov
prino wrote:Action 1: The user will do this or that
Response 1: I'm expecting ...

Action 2: Now the user will do
Response 2: I'm expecting ...

Language is obviously a big problem for you, so follow the above instructions, maybe then we can make sense of your mud...


Hi Robert,

Yes, language is a problem for me.

Action : The user will login to the MF, (1) type 3==> Utilities (2) type 4 Dslist
(3) type any librbary in the 'Dsname Level' (5) then the user will found many members in the pds!

Then in the screen of (5), i want to run a rexx tp get the messages of the current panel displayed. e.g. lib/member name