Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10326
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: 10326
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: 4650
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
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us