Previous Topic: NetMaster REXX Commands

Next Topic: CMD/COMMAND


CALL

The CALL command enables REXX to call NCL procedures, including parameters and shared variables. You must explicitly name any variables that you want to share. Do not use prefixes.

This command has the following format:

CALL PROC=procname [PARMm=value1,…valuem] [SHAREn=name1,…namen]
PROC=procname

Specifies the PDS member name that contains a valid NCL procedure.

PARMm=value

Specifies a parameter.

Range: 1 through 20

SHAREn=name

Specifies the explicit shared variable name (no ampersand). You can specify only variables that are valid names in NCL and REXX.

Range: 1 through 50

Restrictions

Example 1: CALL Command

'CALL PROC=$esapi00 PARM1=CLASS=translate PARM2=data=AHRSP’,
     'SHARE1=$ESXLATEFullTxt SHARE2=$ESXLATEShortTxt'
say $ESXLATEFullTxt
say $ESXLATEShortTxt

Example 2: CALL Command

/* REXX */
                                                          
  Class         ="01"                                   
  ThisSystemName="CA11"                                 
                                                          
  "CALL PROC=$RMDBAPI PARM1=SERVICE=GET",                 
                    " PARM2=CLASS="||Class,               
                    " PARM3=SYSNAME="||ThisSystemName,    
                    " PARM4=VERSION=0002",                
                    " SHARE1=ZRMDBSDESC",                           
                    " SHARE2=ZRMDBLDESC1",                          
                    " SHARE3=ZRMDBLDESC2",                          
                    " SHARE4=SYSMSG"                                
                                                          
  Say "Short description :" ZRMDBSDESC                    
  Say "Long Description 1:" ZRMDBLDESC1                   
  Say "Long Description 2:" ZRMDBLDESC2                   
  Say "Sysmsg ...........:" SYSMSG