home 
 
 
 
nlfr
 
Home
About ABIS
Services
Courses
Resources
Contact
MyABIS
C
What is available?ABIS Infor » 2017-09 » 2017-01 » 2016-11 » 2016-06 » 2016-04 » 2016-02 » 2015-03 » 2014-03 » 2013-04 » 2013-01 » 2012-10 » 2012-06 » 2012-04 » 2012-01 » 2011-11 » 2011-10 » Oracle: Play, Rewind, Replay » ABIS helps KBC with their ICT Academy » Agile development and Offshoring » UNIX shell scripting tips & tricks » REXX and SDSF » 2011-08 » 2011-06Exploring Db2Presentations and papersTest your knowledge 

ABIS Infor - 2011-10

REXX and SDSF

Gie Indesteege (ABIS) - 1 September 2011

Abstract

REXX is a powerful language, which can now (since z/OS 1.9) be used to access the JES spool via SDSF functions. A powerful alternative to SDSF batch. Imagine you can pinpoint your batch jobs in error without using split screen start SDSF?

History

The Restructured Extended Executor Language (REXX) has proven to be a powerful 'replacement' language for the good old 'CLIST' since the 80's. Using REXX for accessing the spool through SDSF is the latest step forward in providing nice support for system and development people on z/OS.

The concept:

The SDSF interactive panels are 'virtualised' to the REXX interface, which makes it possible to handle the information as a set of stem variables. The order of processing is an imitation of the user's interaction.

Typical scenario:

I want to show the return codes of my jobs:

	RC = ISFCALLS("ON")
	ADDRESS SDSF
	isfprefix = "TU0*"
	isfowner = "TU*"
	ISFEXEC H
	do cntr = 1 to isfrows
		say "jobname" value(JNAME.cntr) "with jobid" value(JOBID.cntr) ,
		"ended with RC" RETCODE.cntr
	end
	RC= ISFCALLS("OFF")

Advanced processing:

Manipulation of the 'selected' jobs is possible as well, thanks to a unique identifier TOKEN for each row. The actions are triggered through the ISFACT interface.

For example: purge all jobs with return code < 8

	if word(RETCODE.cntr,2) < 8 then 
		"isfact h TOKEN('"TOKEN.cntr"') parm(np p)"   

 

As a matter of fact, manipulating the Job Data Sets (JDS) is possible too, but you are welcome at ABIS to learn more about these advanced REXX possibilities.

 

More info on the REXX support in SDSF can be found in the IBM redbook SG24-7419 at http://www.redbooks.ibm.com/.