Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is it possible to create a Instream Macro in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Is it possible to create a Instream Macro in REXX
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Sat Jun 14, 2008 12:14 pm    Post subject: Reply to: Is it possible to create a Instream Macro in REXX
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    Post subject: Reply to: Is it possible to create a Instream Macro in REXX
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Sat Jun 14, 2008 2:41 pm    Post subject: Reply to: Is it possible to create a Instream Macro in REXX
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

Moderator Team Head


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

PostPosted: Sat Jun 14, 2008 6:20 pm    Post subject: Reply to: Is it possible to create a Instream Macro in REXX
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: 2360
Location: Israel

PostPosted: Sun Jun 15, 2008 1:07 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us