View previous topic :: View next topic
|
Author |
Message |
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
Hi,
Is it possible to create a instream macro inside a rexx, rather than creating in a seperate member.
Thanks
n. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
instream where, please explain |
|
Back to top |
|
|
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
Hi ,
Iam opening a Dataset in View mode , usually i use to do ispf edit commands thru macro kept in seperate member and allocating that datset to SYSEXEC.But instead of writng that macro in a seperate member , is it possible to code with in the same rexx.
VIEW DA('abc') MACRO(DEF)
this macro DEF is a member in a PDS. But i need that to be coded with in the same rexx ..
In a Simple ... way all i need is to run some ispf edit commands on the dataset i opened in view mode, automatically without concatenating the dataset that contains macro(Like how a macro does)
Hope iam clear
Thank You
n. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
not at all...
anything (clist or rexx ) that is being invoked as a command must ....
reside in a pds concatenated/allocated to sysproc or sysexec ( see the manual for the rules )
or explicitly executed/invoked with ..
"EXEC sequential_dataset"
or ...
"EXEC partitioned_dataset(member)"
anything invoked as an edit macro must ...
reside in a pds concatenated/allocated to sysproc or sysexec ( see the manual for the rules )
unless , but You were not clear at all, You want, from the main rexx
build dynamically another rexx and excute it as a macro |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Maybe you should use TSO EDIT instead?? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
1. Generate the Edit-Macro code using regular REXX instructions.
2. Create a temporary dataset (probably using ALLOCATE).
3. Save the new generated lines as a member in this new dataset (EXECIO).
4. Allocate that dataset to SYSEXEC/SYSPROC/SYSUEXEC/SYSUPROC (maybe ALTLIB).
5. Use the EDIT/VIEW service with the name of the new member.
O. |
|
Back to top |
|
|
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
Cool Idea. It worked !!!
Thank You
n. |
|
Back to top |
|
|
|