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
 

 

Unable to Run Rexx as a command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Unable to Run Rexx as a command
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: 1445
Location: Azeroth

PostPosted: Mon Jul 02, 2012 11:39 am    Post subject:
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    Post subject:
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: 1713
Location: UK

PostPosted: Mon Jul 02, 2012 2:29 pm    Post subject:
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    Post subject: Reply to: Unable to Run Rexx as a command
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

Moderator


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

PostPosted: Mon Jul 02, 2012 4:34 pm    Post subject: Re: Reply to: Unable to Run Rexx as a command
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    Post subject: Reply to: Unable to Run Rexx as a command
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

Senior Member


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

PostPosted: Mon Jul 02, 2012 6:01 pm    Post subject: Re: Unable to Run Rexx as a command
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Jul 02, 2012 6:34 pm    Post subject: Reply to: Unable to Run Rexx as a command
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: 685
Location: Earth

PostPosted: Mon Jul 02, 2012 8:48 pm    Post subject:
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

Site Director


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

PostPosted: Mon Jul 02, 2012 11:42 pm    Post subject:
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: 1445
Location: Azeroth

PostPosted: Mon Jul 02, 2012 11:56 pm    Post subject:
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

Moderator


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

PostPosted: Tue Jul 03, 2012 12:16 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Jul 03, 2012 1:27 pm    Post subject:
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    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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 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
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am


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