IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is it possible to create a Instream Macro in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Sat Jun 14, 2008 10:46 am
Reply with quote

Hi,

Is it possible to create a instream macro inside a rexx, rather than creating in a seperate member.

Thanks
n.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jun 14, 2008 12:14 pm
Reply with quote

instream where, please explain
Back to top
View user's profile Send private message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Sat Jun 14, 2008 2:12 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jun 14, 2008 2:41 pm
Reply with quote

Quote:
Hope iam clear

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Jun 14, 2008 6:20 pm
Reply with quote

Maybe you should use TSO EDIT instead??
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Jun 15, 2008 1:07 am
Reply with quote

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
View user's profile Send private message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Mon Jun 16, 2008 9:21 pm
Reply with quote

Cool Idea. It worked !!!


Thank You
n.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top