The STEMEDIT sub-routine for REXX/OUTTRAP and ISPF

                    

Overview

The STEMEDIT sub-routine is invoked by a REXX exec in the ISPF environment and allows the user to browse, view or edit REXX stem variables using the BRIF, VIIF or EDIF services. STEMEDIT was written in 1995 as a nice complement to the REXX OUTTRAP function; today's version can PULL lines from the OUTTRAP data stack, or from stem variables.

STEMEDIT is written in assembler and requires ISPF V3 on MVS/ESA, OS/390 or z/OS. STEMEDIT is a free program, available in source-code format in the freeware section of this Web site.

           

Syntax

STEMEDIT is invoked via the CALL command of a REXX exec.

	CALL STEMEDIT
		  service,		BROWSE, VIEW or EDIT
		  stemname		stem of family of variables
		  <,firstelem>		first element
		  <,stemcount>		maximum number of variables
		  <,title>		Title for display screen
		  <,panel>		name of Browse, View or Edit Panel
		  <,lrecl>		maximum variable length
		  <,recfm>		F, FA, FM, V, VA, VM, or U
		  <,profile>		profile for EDIT or VIEW 

Operands

Notes:

Return Codes

The STEMEDIT sub-routine returns a return code that indicates whether the display worked. The returned value is contained in the RC special variable. The following STEMEDIT return code values are possible:

Examples:

Call the STEMEDIT routine to display the output of the TSO "LISTCAT" command. The variables to display begin with the characters "LINE.":

	CALL OUTTRAP 'LINE.';  'LISTCAT';  CALL OUTTRAP 'OFF'
	CALL STEMEDIT 'BROWSE','LINE.',,,'List Catalog' 

QUEUE JCL to the data stack and call the STEMEDIT routine to VIEW it:

	"MAKEBUF"
	QUEUE '//MYJOB JOB 12345,CLASS=A'
	QUEUE '//STEP2 EXEC PGM=IEFBR14'
	CALL STEMEDIT 'VIEW',,,,'Sample JCL'
	"DROPBUF" 

Compatibility

STEMEDIT is designed to be compatible with the STEMDISP function of the REXXTOOLS/MVS product from Open Software Technologies, with the following exceptions:

  1. STEMEDIT supports the BROWSE, VIEW and EDIT services (STEMDISP only supports BROWSE).
  2. If stemcount is not specified, STEMEDIT scans variables until an unitialised variable is found (STEMDISP stops after 100000 variables).
  3. STEMEDIT has the ability to retrieve data from a stem variable or the data stack (STEMDISP can only retrieve data from a stem variable).

Search key-words: ibm mvs os/390 os390 z/os zOS TSO TSO/E ISPF REXX browse view edit display show stemdisp stemview stem variables stack outtrap BRIF VIIF EDIF RXBREDVI RXBRVIED RXEDVIBR RXVIEDBR RXEDBRVI RXVIBRED