View previous topic :: View next topic
|
Author |
Message |
sshakya2
New User
Joined: 23 Dec 2010 Posts: 17 Location: Mumbai, India
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
sshakya2
New User
Joined: 23 Dec 2010 Posts: 17 Location: Mumbai, India
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
sshakya2
New User
Joined: 23 Dec 2010 Posts: 17 Location: Mumbai, India
|
|
|
|
Wats in the name. I tried using my gf's name (Hoping the chances of running might increase) but still the same error.
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
sshakya2 wrote: |
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
Shame on you , for not answering questions who wanted to help
Put your filthy attitude aside and answer to questions when you need answers
Moderators,
Am sorry when people behave like this it furiates me |
|
Back to top |
|
|
sshakya2
New User
Joined: 23 Dec 2010 Posts: 17 Location: Mumbai, India
|
|
|
|
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 . |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
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 |
|
|
sshakya2
New User
Joined: 23 Dec 2010 Posts: 17 Location: Mumbai, India
|
|
|
|
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' .
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Glad we had been helpful! Good Luck. |
|
Back to top |
|
|
|