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

Unable to Run Rexx as a command


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

New User


Joined: 23 Dec 2010
Posts: 17
Location: Mumbai, India

PostPosted: Mon Jul 02, 2012 10:49 am
Reply with quote

Hi,

Is there anyway to invoke the REXX thru a command from anywhere in the ISPF.
After Allocating the REXX pds to SYSEXEC, i can run my REXX as a comand thru any edit panel but i want it to run it from anywhere in the ISPF. Be it a display Panel or Edit Panel.
Is there any way to achieve this ?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Jul 02, 2012 11:39 am
Reply with quote

Hello,
If the PDS is allocated to SYSEXEC then I think it can be run from any panel.
Try going to display panel(panel in which the command is not recognised) and issue TSO ISRDDN and check if the SYSEXEC is still associated to your PDS.
Back to top
View user's profile Send private message
sshakya2

New User


Joined: 23 Dec 2010
Posts: 17
Location: Mumbai, India

PostPosted: Mon Jul 02, 2012 11:43 am
Reply with quote

I have checked that already. That is why i am able to run it as a command on edit panels.

On running on any other panel,(except Edit panels) It is erroring with

IEC130I EQQMLIB DD STATEMENT MISSING
EQQEVCMD WAS UNABLE TO OPEN THE MESSAGE LIBRARY FILE
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


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

PostPosted: Mon Jul 02, 2012 2:29 pm
Reply with quote

What is the name of your program? Sounds like it could be the same as a system command. How are you invoking it on other panels, and where?
Back to top
View user's profile Send private message
sshakya2

New User


Joined: 23 Dec 2010
Posts: 17
Location: Mumbai, India

PostPosted: Mon Jul 02, 2012 2:52 pm
Reply with quote

Wats in the name. icon_smile.gif I tried using my gf's name (Hoping the chances of running might increase) but still the same error. icon_smile.gif

Its working on other LPAR and another project. Looks like i have done some goofup with SYSEXEC or SYSPROC default files.

Will try to restore and run. I hope that should work. will post again for any queries.

Thanks
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Jul 02, 2012 4:34 pm
Reply with quote

sshakya2 wrote:
Wats in the name. icon_smile.gif I tried using my gf's name (Hoping the chances of running might increase) but still the same error. icon_smile.gif


Arent you ashamed of yourself making fun of people

Shame on you , for not answering questions who wanted to help

Put your filthy attitude aside and answer to questions when you need answers icon_evil.gif

Moderators,

Am sorry when people behave like this it furiates me icon_redface.gif
Back to top
View user's profile Send private message
sshakya2

New User


Joined: 23 Dec 2010
Posts: 17
Location: Mumbai, India

PostPosted: Mon Jul 02, 2012 5:03 pm
Reply with quote

I didn't wanted to drag on this post which occured due to my mistake (unknowingly removed other sysexec files). I would have written the solution by myself after being sure about the cause. I am newbie in REXX and trying hard to learn it.

The piece of post you highlighted was to lighten the mood but i am sorry to say that you have taken in wrong spirit. I didnt want to hurt any emotion icon_smile.gif icon_smile.gif.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jul 02, 2012 6:01 pm
Reply with quote

sshakya2 wrote:
Is there anyway to invoke the REXX thru a command from anywhere in the ISPF.
This needs further explanation - what does "anywhere" refer to here? "COMMAND Line", by defintion, is the place to issue the comands.

Having said that, are you talking about an ISREDIT macro? If so, I'd recomend that you show us the macro, if it's not too long. For example, if you use this kind of macro
Code:
ADDRESS ISREDIT
'MACRO (PARM)'
'X ALL'       
'FIND ALL' PARM
EXIT 0         
this will work only when one is either in VIEW or EDIT mode under ISPF else it won't work.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Jul 02, 2012 6:34 pm
Reply with quote

being able to invoke a command by simply using it' s name is part of the EDIT/VIEW logic

the panel I/O is handled by the EDIT/VIEW process with the assumption that anything entered <could> be a legitimate EDIT/VIEW command ==> also a MACRO ( not a command intrinsic to ISPF )
the string entered into the command area of any other panel is supposed to be a proper ISPF command , either native or added to the command table by the user

if anybody wants to issue a <generic> command without <prefixing> it with TSO
should update the command table accordingly
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Jul 02, 2012 8:48 pm
Reply with quote

Quote:
IEC130I EQQMLIB DD STATEMENT MISSING
EQQEVCMD WAS UNABLE TO OPEN THE MESSAGE LIBRARY FILE


From the error messages you posted, it seems like you are trying to invoke one of the OPC scheduler panels from your rexx. If you explain what exactly you are trying to achieve, we may be able to provide better answers.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 02, 2012 11:42 pm
Reply with quote

Hello,

Quote:
Quote:
Wats in the name. I tried using my gf's name (Hoping the chances of running might increase) but still the same error.


Arent you ashamed of yourself making fun of people


If i read this correctly, there was no "making fun of people" . . .
I suspect TS was trying to do what i do - pick a name that Would Not be confused with something standard on the system. I've used my wife's and children's names for "stuff" for years (not something going Prod, but just for my use/learning).

Possibly, i'm mistaken.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Jul 02, 2012 11:56 pm
Reply with quote

I used my Girlfriend's name as jobname once but got a JCL error saying
'PASSIVEAGGRESSIVEBEAST' too long for jobname.
I am single since then.. *forever alone*
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Tue Jul 03, 2012 12:16 am
Reply with quote

Nah , I was pointing at TS for saying whats in the name when Nic was trying to help him out when he might have pverlapped the macro with existing ones

I still feel bad when he didnt understand and pointed out saying whats in the name

"using the ppl names and arguing it might have fetched better results " When replyin to ppl who were trying to help wasnt funny atleast for me

Definitely no need to be submissive but when things coming for free there is no respect for food
Back to top
View user's profile Send private message
sshakya2

New User


Joined: 23 Dec 2010
Posts: 17
Location: Mumbai, India

PostPosted: Tue Jul 03, 2012 10:39 am
Reply with quote

Thanks Dic, you got it right.

Thanks enrico-sorichetti, its a small rex program so i dont need to create a new comand for it. Now I am running it fine with TSO 'my gfs name' icon_smile.gif.

Thanks Akshirsagar and NIC clouston for your help.

Thanks Anuj D, here is where the problem lied :-
I am a newbie in REXX, so i copy pasted an old macro which had this ADDRESS ISREDIT coded at the top and added my code below. ( I hope due to this it was considered as a EDIT MACRO and was working only on edit panels). removed this ISREDIT MACRO code and just kept the /* REXX */ there.
Allocated the rexx pds to SYSEXEC and relogged in.
Now I am able to run it from 'anywhere' ( command lines on any panel). I realized that i should study deeply about Rexx. Its awesum for automation.

Pandora BOX !!! Relaxxxxx ...
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jul 03, 2012 1:27 pm
Reply with quote

Glad we had been helpful! Good Luck.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
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