Chapter 17: JCL Support

This chapter describes the support for JCL provided within Mainframe Express.

Introduction

Mainframe Express enables you to build and test an MVS mainframe application on your PC up to the point where it is ready to be transferred to your mainframe system for final testing and production. You can also perform any subsequent maintenance of the application at a PC.

An important part of an MVS application is the JCL jobstream that controls its execution. Mainframe Express provides facilities to support the use of batch JCL jobstreams on the PC or UNIX workstation. Within the integrated development environment (IDE) of Mainframe Express you can:

All mainframe operations require you to have installed and configured the relevant mainframe access products.

A major objective of the JCL support is to keep the operations on the PC as similar as possible to those done on the mainframe. Thus on your PC, you can:

Much of the information in the chapter Running a TSO Session also applies to JCL support. We recommend that you read that chapter before using JCL. In addition, you need to understand more about the following topics:

Each of these topics is discussed below.

JCL Jobstreams

You can run the same JCL jobstreams on the PC as you can on the mainframe. Mainframe Express checks the JCL statements for errors as far as possible. Several parameters, especially on DD statements, have no meaning in a PC environment and are ignored. This section describes the differences that apply when using JCL jobstreams in the Mainframe Express environment instead of the MVS mainframe environment.

Mainframe Express supports both MVS JCL and VSE JCL. The following sections describe the levels of support for MVS JCL and VSE JCL.

MVS JCL Support

The following sections outline the features and statements in MVS JCL that are supported by Mainframe Express.

MVS JCL Features

Mainframe Express supports the following MVS JCL features:

Mainframe Express does not support the following MVS JCL features:

More information about the MVS JCL statements supported by Mainframe Express is given later in this section.

Mainframe Express supports the running of MVS JCL jobstreams either directly or via the TSO SUBMIT command and the Micro Focus extension ASUBMIT. You can run these TSO commands in a TSO session and with the IKJEFT01 utility.

Files containing MVS JCL jobstreams and cataloged procedures can be downloaded from the mainframe or created on the PC. Cataloged procedures should be stored as members of partitioned data sets, known as procedure libraries. The procedure libraries are defined to Mainframe Express in two different ways:

Mainframe Express searches these libraries in the order specified above.

The jobstream is processed at various stages:

  1. When you click Done, after adding one or more MVS JCL files to a project, Mainframe Express scans the MVS JCL statements to resolve any dependencies on other files (such as cataloged procedures and statements included by INCLUDE statements).
  2. During a Build operation Mainframe Express scans the MVS JCL statements to construct the jobstream, find any errors and extract the information that it requires to run the job. You can perform a Build operation:
  3. During a Debug operation, if the Build was successful, Mainframe Express runs each job step, taking into account any conditional statements (IF, THEN, ELSE) or conditional parameters (COND) that apply.

In addition, when the job is submitted for running (that is, when you request debugging), the effect depends on the setting of the TYPRUN parameter to the JOB statement as shown below:

TYPRUN=SCAN   The syntax is scanned
TYPRUN=COPYThe job stream is copied to a SYSOUT data set
TYPRUN=HOLDHolding of the job until explicitly released for execution
No TYPRUNThe job is executed immediately, assuming resources are available

MVS JCL Statements

For a full description of MVS JCL statements, please refer to your IBM OS/390 MVS JCL Reference manual.

Mainframe Express supports the following MVS JCL statements:

Statement Description
DD Defines the allocation and disposition of a data set
EXEC Defines a job step, including the program or cataloged procedure to be run
  • IF
  • THEN
  • ELSE
  • ENDIF
Specifies conditional execution of MVS JCL statements
INCLUDE Specifies where pre-defined MVS JCL statements are to be included in the jobstream
JCLLIB Specifies procedure libraries and their search order
JOB Defines a job. Mainframe Express supports only one job per jobstream
JOBLIB Specifies private libraries to be searched for programs identified in EXEC statements
PROC Defines the start of an instream MVS JCL procedure
PEND Defines the end of an instream MVS JCL procedure
SET Defines the values to be assigned to symbolic parameters
STEPLIB Specifies private libraries to be searched for programs identified in EXEC statements
OUTPUT Specifies the processing options that the job entry subsystem is to use for printing a SYSOUT data set. Mainframe Express supports only the following parameters:
  • BURST
  • CHARS
  • COPIES
  • DEST
  • FLASH
  • FORMS
  • UCS

Mainframe Express does not support the following MVS JCL statements. They are checked only for correct syntax.

Statement Description
COMMAND Issues commands to MVS and JES2
CNTL Defines the start of a set of program control statements
ENDCNTL Defines the end of a set of program control statements
XMIT Transmits records from JES3

VSE JCL Support

The following sections outline the support for VSE JCL in Mainframe Express.

Restrictions

The following list describes some general restrictions that apply to Mainframe Express's support for VSE JCL. For information on the support for individual statements, see the sections VSE JCL and POWER Statements and POWER Statements.

VSE JCL and POWER Statements

The following table shows the level of support available for VSE JCL and POWER statements. For each statement, the "Support Level" column indicates whether that statement is fully processed or only parsed to check for correct syntax. Any VSE JCL and POWER statement not listed in this table is not supported.

StatementParametersSupport Level
// ASSGN SYSxxxParse
 ",Device"Parse
 "[,TEMP|PERM]]"Parse
 "[,VOL-volser]"Parse
// ASSGN SYSxxxProcess
 ",Device"Process
 "[,TEMP|PERM]]"Process
// ASSGN SYSxxxParse
 ",Device"Parse
 "[,mode|ALT]"Parse
 "[,TEMP|PERM]]"Parse
 "[,VOL-volser]"Parse
// DATEmm/dd/yy or dd/mm/yy depending on system settingsParse
//DLBL filenameProcess
 ",’fileid’"Process
 "[,date]"Parse
 "[,code]"Parse
 "[,DSF]"Parse
 "[,BLKSIZE=n]"Process
 "[,CISIZE=n]"Parse
//DLBL filenameProcess
 ",’fileid’"Process
 "[,exp-date]"Parse
 "[,VSAM]"Process
 "[,DSF]"Parse
 "[,BUFSP=n]"Parse
 "[,BUFND=n]"Parse
 [BUFNI=n]Parse
 "[,CAT=catname]"Parse
 "[,DISP=(disp,disp,disp)]"Process
 "[,RECORDS=primary,secondary]"Parse
 "[,CISIZE=n]"Parse
// EXECPROC=procnameProcess
 "[,parms]"Process
// EXEC [PGM=]prognameProcess
 "[,REAL]"Parse
 "[,SIZE=size]"Parse
 "[,GO]"Parse
 "[,PARM=’value’]"Process
// EXTENT[logical-unit]Parse
 ",[volser]"Parse
 ",[type]"Parse
 ",[seqnumber]"Parse
 ",[location]"Parse
 ",[quantity]"Parse
 ",[split-cylinder-track]"Parse
// GOTO[label | $EOJ]Process
// IF{ $RC | $MRC | parameter-name }Process (except for parameter-name, which is parsed only)
 operatorProcess
 valueProcess
 [OR|AND]Process
 { $RC | $MRC | parameter-name }Process
 operatorProcess
 valueProcess
 THENProcess
// JOBjobnameProcess
 [accounting info]Process
// LIBDEFtypeProcess
 "[,SEARCH=(lib1,slib1,…lib15,slib15)]"Process
 "[,CATALOG=lib.slib]"Process
 "[,TEMP|PERM]"Parse
// LIBDEFtypeParse
 "[,SEARCH=(lib1,slib1,…lib15,slib15)]"Parse
 "[,CATALOG=lib.slib]"Parse
 "[,TEMP|PERM]"Parse
// LIBDROPtypeProcess
 "[,definition-type]"Process
 "[,TEMP|PERM]"Parse
// LIBDROPtypeParse
 "[,definition-type]"Parse
 "[,TEMP|PERM]"Parse
// LIBLISTtypeProcess
 "[,partition]"Parse
 "[,SYSxxxx]"Parse
// LISTIOtypeProcess
 "[,partition]"Parse
 "[,outdev]"Parse
// LIBSERVSend requests to tape library serverParse
// LOG and // NOLOG Parse
// MTC operationParse
 "[,device]"Parse
// ON{$RC operator n | $CANCEL |$ABEND }Process
 [{OR|AND} condition]Process
 {$RC operator n | $CANCEL |$ABEND }Process
 [GOTO label | CONTINUE]Process
// OPTIONparmParse
 "[,parm2,…….]"Parse
// PAUSEComment dataParse
// PROC[parm=value]Process
// PWRPRELEASE [operands] !] Process
 PHOLD[operandsParse
// RESETtypeProcess
// SETPARM Parm=valueProcess
 "[,parm=value,………]"Process
// SETPFIX Parse
// STDOPT"Option[,option2…]"Parse
// TLBLfilenameProcess
 ",’fileid’"Process
 "[,date]"Parse
 "[,volser]"Parse
 "[,volseq]"Parse
 "[,fileseq]"Parse
 "[,generation]"Parse
 "[,version]"Parse
// UPSInnnnnnnnProcess
// ZONEEAST/hh/mm or WEST/hh/mmParse
/. label Process
/* Process
./ Process
* Process
/+ Process

POWER Statements

The following table shows the level of support available for POWER statements. For each statement, the "Support Level" column indicates whether that statement is fully processed or only parsed to check for correct syntax. Any POWER statement not listed in this table is not supported.

StatementParametersSupport Level
* $$ JOBJNM=jobnameProcess
 [,DISP=disp]Parse
 [,PRI-pri]Parse
 [,CLASS=class]Parse
 [,NTFY=ntfy-option]Parse
 [,USER='user info'}Parse
 FROM=user_idParse
 LOG=xParse
 BRTNC=xxxParse
 DUETIME=optionsParse
 [,BLDG=x]Parse
 [,DEPT=x]Parse
 [,ROOM=x]Parse
 [,EOJMSG=YES]Parse
 [,PWD=x]Parse
 [,PROGR=x]Parse
 SYSID=(node_id,user_id)Parse
 NETACCT=account_noParse
 XDEST=(node_id,user_id)Parse
 LDEST=(node_id,user_id)Parse
 PDEST=(node_id,user_id)Parse
 SEC=(user_id,password)Parse
* $$ LST[,DISP=disp]Parse
 [,PRI-pri]Parse
 [,CLASS=class]Parse
 [,UNIT=addr]Parse
 [,LST=SYSxxx]Parse
 [,FNO=xxx]Parse
 [,FCB=xxxxxx]Parse
 [,JSSEP=x]Parse
 [,RBS=nnnn]Parse
 RBM=(norbm1,norbm2)Parse
 RBC=norbcParse
 BRTNC=xxxParse
 PURGE=nnnParse
 DEST=(node_id,user_id,subsystem)Parse
 PRMODE=valueParse
 REMOTE=remote_idParse
 CMPACT=nameParse
 SYSID=nParse
 DIST=distcodeParse
 TADDR=(tapeaddr,mode)Parse
 USER=user_infoParse
 PWD=passwordParse
 BURST=xParse
 CHARS=tablenameParse
 COPYG=(groupvalue)Parse
 DLFT=xParse
 FLASH=(overlayname,count)Parse
 MODIFY=(copymodname,tablename)Parse
 [,PAGEDEF=xxx]Parse
 [,FORMDEF=xxxx]Parse
* $$ PUN Process
 JNM=jobnameProcess
 CLASS=classProcess
 DISP=disposition | D | TProcess
 PRI=priorityProcess
 PUN=punchaddrProcess
 COPY=nProcess
 FNO=formnoProcess
 RBS=norbsProcess
 RBM=(norbm1,norbm2)Process
 RBC=norbcProcess
 JSEP=(n,option)Process
 BRTNC=YES | NOProcess
 PURGE=NO | nnnnProcess
 DEST=(node_id,user_id,subsystem)Process
 PRMODE==xProcess
 SYSID=nProcess
 DIST=distcodeProcess
 USER=userinfoProcess
 PWD=passwordProcess
* $$ SLI  
 MEM-membernameParse
 ,[.type]Parse
 ,S=lib1.sublib,lib2.sublib2]Parse
 Sublib.Parse
 booknameParse
* $$ SLI  
 ICCF=membername,Process
 LIB=(libnumber,password)Process
* $$ DATAnameParse
* $$ CTL CLASS=classParse
* $$ EOJ Process

VSE JCL Configuration Files

At system start-up, VSE can set a number of values that are available to any job run on the system until shut down. Mainframe Express emulates this behavior with the use of a configuraiton file. You can use the configuration file to specify information about the following:

Mainframe Express reads the configuration file at the start of each job, so if you run a job then modify the configuration file, running the job again will pick up the modified configuration file.

Structure of a VSE JCL Configuration File

A VSE JCL configuration file is a text file that contains a number of name-value pair entries, with each entry on a separate line. Blank lines or lines beginning with an asterisk (*) are treated as comment lines.

The format of the name-value pair entries are shown below.

For devices:

device_id      id
device_type    type

where:

idis a three-digit code specifying the device address
typeis one of PRINTER, READER, PUNCH, DISK or TAPE.

For logical units:

assgn_lu        lu
assgn_device    device

where:

luis the logical unit to use.
deviceis the device to assign to the logical unit lu.

For standard labels:

dlbl_dd         dd
dlbl_dsn        dsn

where:

ddis the label to use.
dsnis the data set name to assign to the label dd.

Note: There is an addtional name-value pair entry for defining partitions, but specifying it has no effect.

Specifying the Location of the VSE JCL Configuration File

To make a VSE JCL configuration file available to Mainframe Express you specify its location using the VSE_STARTUP_CFG environment variable. For example, if you create the configuration file in c:\setup\vseconfg.cfg, you would set VSE_STARTUP_CFG as follows:

SET VSE_STARTUP_CFG=c:\setup\vseconfg.cfg
Example VSE JCL Configuration File
* ==================================================================
* =     VSE SYSTEM START-UP                                        =
* ==================================================================
partition        BG
* ==================================================================
* =     devices                                                    =
* ==================================================================
device_id        02A
device_type      PRINTER 
* 
device_id        02B
device_type      PRINTER 
* 
device_id        02C
device_type      PRINTER 
* 
device_id        02D
device_type      PRINTER 
*
device_id        02E
device_type      PUNCH
*
device_id        02F
device_type      READER 
* 
device_id        42E
device_type      PRINTER 
* 
device_id        43E
device_type      PRINTER 
* 
device_id        44E
device_type      PRINTER 
* 
device_id        45E
device_type      PRINTER 
* 
device_id        46E
device_type      PRINTER 
* 
device_id        020
device_type      DISK 
* ==================================================================
* =     permanent assignments                                      =
* ==================================================================
*
assgn_lu         SYSIPT
assgn_device     02F
*
assgn_lu         SYSLST
assgn_device     02A
*
assgn_lu         SYS001 
assgn_device     02B    
*
assgn_lu         SYS002
assgn_lu_2       SYS001
*
assgn_lu         SYS002
assgn_lu_2       SYSLST
* ==================================================================
* =     standard labels                                            =
* ==================================================================
dlbl_dd          CMAST 
dlbl_dsn         CUSTOMER.MASTER.FILE

Special Characters in JCL Program-names

Mainframe Express validates JCL program-names using IBM's list of valid characters. Valid characters in this list are @ # and $, although in some codepages the conversion of these characters causes incompatibilities with the name validation. If you experience problems using any of these special characters in the name of a JCL program, you should report these to Micro Focus.

Running a Job on the Mainframe

You can submit to the mainframe jobs that you have created on the PC. Any JCL procedures used by the job must reside in a procedure library on the mainframe and you should include a suitable //PROC statement in the jobstream, such as:

//PROC JCLLIB ORDER=procedure-library

Any application programs used by the job must reside in a load library on the mainframe and you should include a suitable //JOBLIB statement in the jobstream, such as:

//JOBLIB DD DSN=load-library,DISP=SHR

If you have configured Mainframe Access so that Mainframe Express has access to more than one mainframe node, you can include //JOBLIB statements that refer to any of the defined nodes. For information on configuring Mainframe Access in this way, see the chapter Accessing Mainframe Files in your Administrator's Guide.

Data Sets

Mainframe Express supports most mainframe data set organizations and record formats, as described in the chapter Advanced Data Set Information in your IDE Technical Guide.

Mainframe Express also supports temporary data sets and in-stream data sets included in the jobstream.

Application Programs

Mainframe Express emulates the interface between application programs and MVS in order to allocate data sets and pass parameters. These facilities are described below for COBOL programs. Similar rules apply to Assembler programs.

Allocating Data Sets

MVS provides a direct connection between the filename used in the program and the corresponding data set name used in the JCL. For example, for SYSUT1 in a COBOL program:

SELECT INFILE ASSIGN TO UT-S-SYSUT1

connects to

//SYSUT1 DD DSN=DSNAME1,DISP=OLD

and allocates to the program the PC file representing the data set named DSNAME1.

And, for SYSUT2:

SELECT OUTFILE ASSIGN TO UT-S-SYSUT2

connects to

//SYSUT2 DD DSN=DSNAME2,DISP=(NEW,CATLG),...

and allocates to the program a PC file representing the data set named DSNAME2. The file is created and cataloged automatically when the jobstream is run.

Passing Parameters

Parameters specified in the JCL PARM parameter are passed to the program using the same rules as the mainframe. Options specified in the parameters string are separated from any application parameters by a slash (/) character. For example:

PARMS(application-parameters/run-time-options) 

For information on the linkage area that is used when passing parameters, see the section Passing Parameters in the chapter Running a TSO Session.

Enabling JOBLIB DD and STEPLIB DD Processing

These statements specify directories that will be searched for the programs named in EXEC statements.

To enable JOBLIB/STEPLIB processing do the following:

  1. Create a dynamic PDS that represents each of the PC subdirectories where your .gnt and .int files will reside. We recommend that you segregate .gnt and .int files into different subdirectories.
  2. Execute your JCL using JOBLIB and/or STEPLIB statements that reference the subdirectories you created in STEP1. The search order will be STEPLIB, JOBLIB, then the paths specified by Mainframe Express's workgrouping settings.

If the partitioned data set referenced in a particular STEPLIB or JOBLIB statement exists as a catalog entry, the DD is allocated. Where there are multiple partitioned data sets referenced in a STEPLIB or JOBLIB concatenation, only those data sets that exist are mapped as part of the JOBLIB or STEPLIB concatenation.

Any job that has a STEPLIB and/or JOBLIB statement continues to run unmodified.


Copyright © 2006 Micro Focus (IP) Ltd. All rights reserved.