View previous topic :: View next topic
|
Author |
Message |
Kalaivignesh
New User
Joined: 01 Sep 2017 Posts: 1 Location: India
|
|
|
|
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 |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2010 Location: USA
|
|
|
|
"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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2545 Location: Silicon Valley
|
|
|
|
It should be a member of either your SYSPROC or SYSEXEC concatenations. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
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 |
|
|
|