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

how to plan and use sysrexx?


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

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Fri Jun 11, 2010 9:23 am
Reply with quote

please can anyone tell me something about plan and use system rexx?

I know the address space 'AXR' is for sysrexx and already active in SDSF

NP JOBNAME StepName ProcStep JobID Owner C Pos DP Real Paging SIO
AXR AXR IEFPROC NS C1 416 0.00 0.00

but when I exex a short sysrexx progam,an error occured...

program is here:

/* REXX */
XXX = AXRCMD('D IPLINFO','LIST.',10);
DO I = 1 TO LIST.0
SAY LIST.I
END

error is here:


17 +++ XXX = AXRCMD('D IPLINFO','LIST.',10)
IRX0043I Error running SYSREXX, line 17: Routine not found
***

I'm afraid there still some components should be configured for this AS.thanks.
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Sat Jun 12, 2010 7:13 am
Reply with quote

晕倒!!!!!!
!!!!!!!!
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: Sat Jun 12, 2010 8:48 am
Reply with quote

Hello,

If you intended to communicate something to the forum with your most recent reply - you missed. . . Someone may understand your most recent post, but i surely do not. . . icon_confused.gif

For someone to help, you need to show more detail. Where is this being run? Online or in a batch job? If batch, show the jcl.
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Sat Jun 12, 2010 9:08 am
Reply with quote

thanks for ur consideration...

SYSTEM REXX is a new component for z/os v1.9 and above.

Starting SYSREXX Requires
– Ability to read SYS1.PARMLIB
– Parmlib member CTIAXR00
– Ability to read SYS1.SAXREXEC



The role of SYSREXX in “New Face of z/OS” is to provide an infrastructure through which REXX execs may be run outside the normal TSO/E or Batch environments, using a simple programming interface. This enables the leveraging of base operating system components by new style applications that will, over time, lead to simplified interaction and more intuitive system management capabilities on z/OS.
The ability to initiate REXX execs directly from an operator console has been long overdue on z/OS and is a drag along benefit of this initiative.
The possibilities for exploiting existing REXX code through the use of SYSREXX are vast, whether to provide operator assists or to provide routines that can be leveraged by new strategic initiatives.
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: Sat Jun 12, 2010 9:53 am
Reply with quote

Hello,

If you run outside tso/ispf i suspect there will be problems trying to run anything that requires either or both of these . . .

The problem posted (routine not found) appears to be due to one or more "missing" libraries.
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Sun Jun 13, 2010 8:35 am
Reply with quote

icon_sad.gif
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun Jun 13, 2010 8:39 am
Reply with quote

Victor Niu wrote:
icon_sad.gif
What does this mean?
Victor Niu wrote:
晕倒!!!!!!
!!!!!!!!
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Sun Jun 13, 2010 8:43 am
Reply with quote

can't find the corresponding library...
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: Sun Jun 13, 2010 10:11 am
Reply with quote

Hello,

Have you asked the system support people?

Will this command find the routine if you run it in your online tso session? It might not work properly, but if it runs and fails, you know it is "there".
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Sun Jun 13, 2010 10:26 am
Reply with quote

thanks,dick

resolved this problem by myself.

the system rexx pgm can be executed outside of conventional tso/e and batch environments,such as from operational console.

The default command prefix is 'REXX&SYSCLONE',it can be customized in SYS1.PARMLIB(AXR00). and the pgm should be copied to sysrexx library SYS1.SAXREXEC.

my program name is 'HELLO' and sysclone name is'1A',so I can run this command 'REXX1A HELLO' in console and sdsf. the result is:

RESPONSE=ADCD
AXR0500I AXREXX OUTPUT DISPLAY 397
EXECNAME=HELLO REQTOKEN=0000400000000000C61F27CD66292001
IEE254I 12.57.05 IPLINFO DISPLAY 396
SYSTEM IPLED AT 09.45.41 ON 06/13/2010
RELEASE z/OS 01.09.00 LICENSE = z/OS
USED LOADZZ IN SYS1.IPLPARM ON 0A85
ARCHLVL = 2 MTLSHARE = N
IEASYM LIST = 00
IEASYS LIST = ZZ (OP)
IODF DEVICE 0A85
IPL DEVICE 0A81 VOLUME Z9RES1
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Sun Jun 13, 2010 10:39 am
Reply with quote

CICS Guy wrote:
Victor Niu wrote:
icon_sad.gif
What does this mean?
Victor Niu wrote:
晕倒!!!!!!
!!!!!!!!



haha,I just printed some Chinese characters,but it can't display.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun Jun 13, 2010 11:31 am
Reply with quote

Victor Niu wrote:
haha,I just printed some Chinese characters,but it can't display.
...chuckle, maybe I should have asked you what does it translate to....grin...
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: Sun Jun 13, 2010 11:38 am
Reply with quote

Hello,

Quote:
resolved this problem by myself.
Good to hear this - thank you for lettng us know icon_smile.gif

Quote:
the system rexx pgm can be executed outside of conventional tso/e and batch environments,such as from operational console.

Yes, i understand this is intended to run "stand alone". I suspect that if you want to use any tso or ispf function that function, that function will fail.

Other than the marketing text posted earlier, why do you believe there is a benefit to running this from the console? Every "console commander" i've seen in more than 20 years has tso running already. . .

This sounds like yet another solution in search of a requirement. . .
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Mon Jun 14, 2010 3:11 pm
Reply with quote

@Dick Hi; System Rexx has limited TSO functionality but enough to make it useful. We use it on our SYSPROG images to start and stop the systems. They are test systems and we could not justify the expense of installing automations software . Also many of our ops staff do not have access to TSO this gives us the opportunity to give them access to more information and also to tailor the information.
Finally a question What is a console commander ? it is a term I have not come across before and when I look in google it is not that helpful
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 Jun 14, 2010 7:52 pm
Reply with quote

Hello,

Sorry 'bout that. . . my bad. . .

"Console commander" is a slang term for Computer Operators who man the "system console" and are not involved with scheduling, job setup, peripherals (tape, cart, paper, etc), etc.

Multiple people may have security permissions to issue console commands, but these people (the console commanders) spend their entire shift working system consoles.

Not everywhere has this particular setup, but one of my most recent clients has 9 "really big" mainframes, runs over 30 production lpars and as many as 400 cics regions. There are multiple operators to monitor and respond to console activity 24x7.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Mon Jun 14, 2010 9:25 pm
Reply with quote

System rexx has many restrictions; but you can call system rexx from an authorized program, which I think is a failing of other alternatives.

Though, I have never used it.
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Mon Jun 14, 2010 9:56 pm
Reply with quote

publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.ieaa800/systemrexx.htm

hello nevilh

how to understand the statements:

"There are two different execution environments that are supported:

TSO=NO |TSO=YES"

and specified this parameter in which member?

do u know how to invoke the system rexx by jcl?
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Jun 15, 2010 5:39 pm
Reply with quote

If we use system rexx in batch we invoke it from home written assembler programs (from the documentation I am not sure if it can be directly invoked) . Though it can be invoked from either SDSF batch or any program that can issue commands. The TSO=xx can be defined on the AXREXX macro . If TSO=NO is specified the task will run in a shared address space and cannot issue certain host commands. If TSO=YES is specified the task will run in an isolated isingle address space
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Thu Jun 17, 2010 1:25 pm
Reply with quote

thanks,nevilh,dick and Pedro

in this case,system rexx is no use for task.

my requirement is that a simply pgm can write some self-defined messages which are not highlight to syslog and master console.

Then some concernful jobs can invoke this pgm to give alarms once abends occured.

at beginning,I hope the system rexx can satisfy this requirement and then no need assembler pgm and netview rexx developing.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jun 17, 2010 1:35 pm
Reply with quote

Quote:

netview rexx


Are we talking here SA/390 message processing?
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Thu Jun 17, 2010 2:03 pm
Reply with quote

'WTO' and 'WTOR' can write msg to syslog,they are netview commands.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jun 17, 2010 2:32 pm
Reply with quote

Quote:

my requirement is that a simply pgm can write some self-defined messages which are not highlight to syslog and master console.

Routing and descriptor codes will take care of that.

Quote:

to syslog and master console.


define your message in MPF to be trapped with AUTO(YES)

Quote:

Then some concernful jobs can invoke this pgm to give alarms once abends occured


Your netview automation table entry for this message could trigger
a simple rexx that can submit your concernful jobs
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Thu Jun 17, 2010 9:00 pm
Reply with quote

Hi,PeterHolland

I'm afraid you are misunderstanding my requirements.

I need the pgm to monitor the concernful jobs.

if the jobs abend,the pgm will write a self-defined msg to syslog.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Jun 17, 2010 11:25 pm
Reply with quote

Can you elaborate on what you mean by 'monitor'?

And what problem prevents you from using system rexx? I thought you would issue a "D A,L" command and then to examine the results to make sure that your STC's are listed there.

An alternate approach is to use SDSF DA command and make sure your STCs are there.
Back to top
View user's profile Send private message
Victor Niu

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Fri Jun 18, 2010 7:12 am
Reply with quote

Hello Pedro

The jobs I have to monitor run very frequently,about 10 times a day.It is ok to check the jobs' status by SDSF,but laborious.

What I need is an automatic process which can monitor the jobs and will be triggered if error occured.

after self-defined msg written to syslog, netview MPF will trap this msg,like PeterHolland says.
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts current batch plan DB2 3
No new posts Log an Plan name/id or Job Id using D... DB2 1
No new posts Usage/Utiliy of Plan in DB2 DB2 4
No new posts How do I define a DB2 plan for a web ... CICS 5
No new posts Finding the plan when code compiled u... DB2 2
Search our Forums:

Back to Top