View previous topic :: View next topic |
Author |
Message |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Tue Apr 26, 2016 5:07 am Post subject: Put text |
|
|
Hi Team,
I writing a Rexx macro . I have a requirement where i need to put a text on command line after opening a member in edit mode like below.
Is there anyway I can do this. I tried to search the old posts. But could not find any.
Code: |
EDIT SIVA.UNLOAD.JCLLIB(UNLOAD1) - 01.00 Columns 00001 00072
Command ===> ONLY 'SELECT *' Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //IJ11XXXX JOB (U),'UNLOAD',CLASS=O,
000002 // MSGCLASS=R,NOTIFY=IJ11XXX,TIME=1440
000003 //*
000004 /*ROUTE XEQ SSID
000005 //*
|
|
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Apr 26, 2016 9:07 am Post subject: |
|
|
Why not do the "ONLY 'SELECT *'" as part of your macro or is it your macro that is invoking EDIT on that member? In which case you could have an initial macro to do your ONLY when you invoke EDIT. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Tue Apr 26, 2016 12:59 pm Post subject: |
|
|
Hi Nic,
Only is another macro which works only in edit mode. so when I open member in edit using REXX I want to put that text on command line.
Thanks,
Siva |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12358 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Wed Apr 27, 2016 12:53 am Post subject: |
|
|
Thanks Kolusu. It worked. |
|
Back to top |
|
|
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Wed Apr 27, 2016 12:55 am Post subject: |
|
|
I coded below and it worked. I wanted to put text on command line to execute the other macro but below code served my purpose.
"ISPEXEC EDIT DATASET('"MEMNAME"') MACRO(ONLY) PARM(PARMVAR)"
Thanks,
Siva |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Apr 27, 2016 9:20 am Post subject: |
|
|
Which is what I suggested. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
misi01 Advanced
Joined: 02 Dec 2002 Posts: 616 Topics: 171 Location: Stockholm, Sweden
|
Posted: Sat Apr 30, 2016 2:33 am Post subject: |
|
|
Interesting. When I read the first post, I understood the requirement to be to open and place specific text on the command line (for whatever reason).
Reading the remaining appends, it then turns out that sivafdms wanted to run the edit command automatically for the user.
Just goes to show how, no matter how explicitly you THINK you've explained the problem, it can still be misunderstood. _________________ Michael |
|
Back to top |
|
|
|
|