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

How to Run Rexx Macro?


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

New User


Joined: 01 Sep 2017
Posts: 1
Location: India

PostPosted: Fri Sep 01, 2017 9:08 pm
Reply with quote

I want to write macro to browse file from JCL , in my previous project i had 'IHBR' and 'BRSE' macros but in my new project nothing is there like that.

Thought of writing IHBR macro, before that i wrote small sample macro and i try run that macro from another PDS by just giving that macro member name. But its throwing command not found error.

I used to code rexx program and i run that by giving EX or TSO EXEC 'PDSName'

but i dont have idea how to run Macro.

Tell me how to run Macro plsss...!!
Back to top
View user's profile Send private message
sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 957
Location: Maryland

PostPosted: Fri Sep 01, 2017 9:56 pm
Reply with quote

"Writing a macro" cannot be the task itself (unless it is a homework for a student).
It might be (one of) the ways to perform the actual original task.

Please, describe your task itself. Very likely, no macro at all is needed to do it.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Fri Sep 01, 2017 9:59 pm
Reply with quote

Talk to your site support group. Many sites have libraries set up for users to store macros; other sites require the site support group install any macros into the system libraries.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2216
Location: Silicon Valley

PostPosted: Sat Sep 02, 2017 3:09 am
Reply with quote

It should be a member of either your SYSPROC or SYSEXEC concatenations.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat Sep 02, 2017 3:37 pm
Reply with quote

Quote:
But its throwing command not found error.

No it is not - nothing is ever "thrown" on the mainframe. You could have said
Quote:
I am getting a "COMMAND NOT FOUND" message
or many other ways of stating that you got an error - but "thrown" is not one of them.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 418
Location: Denmark

PostPosted: Mon Sep 04, 2017 1:31 pm
Reply with quote

What is the scope? When you use the term MACRO it indicates (to me anyway) that is is something to run in ISPF edit, but the description indicates something more general.
If you are ok with issuing a command TSO your-command-name then issue the command TSO ISRDDN and look for the ddname SYSEXEC. If there is a dataset with your userid at the front then you can put you REXX pgm in there. Otherwise you need to talk to your colleagues or your tech support team.
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 Determine Library REXX exec was execu... CLIST & REXX 7
No new posts Any examples of calling FTP from REXX? CLIST & REXX 1
No new posts SummeRx: a new framework for REXX z/OS CLIST & REXX 6
No new posts A command to change LRECL of an exist... JCL & VSAM 7
No new posts Using REXX to access SDSF; What am I ... CLIST & REXX 38
Search our Forums:

Back to Top