The batch definition is the basic unit of a TDF-designed batch program. The batch definition defines all processing for your application. It includes all specifications necessary to export your CA Telon source code to the CA Telon generator for compilation into a completed COBOL or PL/I program.
If your program will produce a report, you must create a panel image (see Chapter 5) and a panel definition (see Chapter 6) before you create the batch definition. For programs that do not produce reports, the batch definition is enough to define the program.
The batch definition supplies information to CA Telon that is relevant to the entire program. This information includes:
Basic characteristics include a description, the programming language to be generated, the CA Telon release used, and the report size.
Custom code refers to any COBOL or PL/I code that you include in your program to perform logic beyond that which CA Telon normally performs.
Data access defines databases and data files that the programs access. It includes those automatic exec I/Os that are the same for all executions of the batch definition. It also includes any user exec I/O when your I/Os vary from one execution to the next based on specific conditions.
Extra work areas include the transfer work areas where calculations occur.
Report destination is the name of the file to which CA Telon writes the report.
The different parts of the batch definition can be entered in any order.
To begin the batch definition, type 5 in the FUNCTION field of the TDF Main menu and press Enter (shown following).
FUNCTION: 5_ 1 -- USER PROFILE MAINTENANCE 2 -- DATA ADMINISTRATION 3 -- PANEL SPECIFICATION 4 -- ONLINE PROGRAM DEFINITION 5 -- BATCH PROGRAM DEFINITION 6 -- PROTOTYPING FACILITY U -- UTILITIES X -- EXIT
CA Telon displays the Batch Program Definition menu (see the following screen). The Batch Program Definition menu comes in two forms, short and long.
The USERMODE parameter under Update Session Controls determines the form of the menu. A USERMODE of 1 or spaces, the default, gives you the short form of the Batch Program Definition menu while a USERMODE of 2 gives you the long form.
BATCH PROGRAM DEFINITION MENU ******* ***************************************** COMMAND ==>___________________________________________________________________ FUNCTION: __ CR-CREATE UP-UPDATE PU-PURGE SH-SHOW LI-LIST ITEM: __ BD-BATCH SP-STORED PROCEDURES PI-IMAGE PD-DEFIN DG-DATA GROUP CC-CUSTCODE EN-ENVIRON GP-GROUP MEMBER NAME: HEADER _____ ID _____ TYPE BD (BD, SP) DESC ________________________________________ BASE DEFN : ______ (FOR CREATE - NAME OF BASE BD OR SP) ENTER VALUE FOR SPECIFIC ITEM TO BE PROCESSED: 1. GROUP ________ (NAME OF GROUP) 2. CUSTCODE ________ (NAME OF CUSTOM CODE) 3. ENVIRON MVS___ (MVS, STORED)
The long form requires you to fill in the SPECIFIC ITEM TO BE PROCESSED section in the following cases:
To access the short form, type setmode on the COMMAND line, as shown in the screen below. Press Enter.
The Setmode command allows you to switch back and forth between the two forms of the Batch Program Definition menu.
BATCH PROGRAM DEFINITION MENU ******* *****************************************
COMMAND ==> setmode__________________________________________________________ FUNCTION: __ CR-CREATE UP-UPDATE PU-PURGE SH-SHOW LI-LIST ITEM: __ BD-BATCH SP-STORED PROCEDURES PI-IMAGE PD-DEFIN DG-DATA GROUP CC-CUSTCODE EN-ENVIRON GP-GROUP MEMBER NAME: HEADER _____ ID _____ TYPE BD (BD, SP) DESC ________________________________________ BASE DEFN : ______ (FOR CREATE - NAME OF BASE BD OR SP) ENTER VALUE FOR SPECIFIC ITEM TO BE PROCESSED: 1. GROUP ________ (NAME OF GROUP) 2. CUSTCODE ________ (NAME OF CUSTOM CODE) 3. ENVIRON MVS___ (MVS, STORED)
Notice the BASE DEFN. field. Use this field to identify an existing batch definition to use as a base for the definition you are creating. Enter the HEADER and ID of the definition to be copied with no intervening spaces. You can use this parameter only when the FUNCTION is create. CA Telon then lets you modify the base to meet the needs of the current program.
Now, CA Telon displays the short form of the Batch Program Definition menu.
Notice that the only ITEM choice listed is now BD and that the SPECIFIC ITEM TO BE PROCESSED section is absent.
BATCH PROGRAM DEFINITION MENU ******* ***************************************** COMMAND ==>___________________________________________________________________ FUNCTION: UP CR-CREATE UP-UPDATE PU-PURGE SH-SHOW LI-LIST ITEM: BD BD-BATCH SP-STORED PROCEDURES MEMBER NAME: HEADER _____ ID _____ DESC ________________________________________ BASE DEFN : ______ (FOR CREATE - NAME OF BASE BD)
The FUNCTION, MEMBER NAME and DESCRIPTION fields are the same here as on the Panel Definition menu. If you move directly from the panel definition process to the batch definition, CA Telon carries over the HEADER and ID.
Type CR over UP in the FUNCTION field and leave BD in the ITEM field. On this screen, the batch definition (BD) is the only valid item.
Under MEMBER NAME, type the HEADER and the ID.
If you are creating a program that does not produce a report, you should also enter the description.
Press Enter.
BATCH PROGRAM DEFINITION MENU ******* ***************************************** COMMAND ==> ___________________________________________________________________ FUNCTION: CR CR-CREATE UP-UPDATE PU-PURGE SH-SHOW LI-LIST ITEM: BD BD-BATCH SP-STORED PROCEDURES MEMBER NAME: HEADER TR___ ID BATC_ DESC ________________________________________ BASE DEFN : ______ (FOR CREATE - NAME OF BASE BD)
CA Telon returns the Create Batch Definition screen (see the following screen). This screen allows you to designate all the information needed to complete the BD, including:
TRBATC.BD CREATE BATCH DEFINITION ******************************************** COMMAND ==>___________________________________________________________________ OPTIONS ==> CUSTOM CODE _ DATA GROUP _ PANEL DEF _ ENV MVS _ STORED PROCEDURES _ GENERAL: DESC ________________________________________ _ REMARKS ________ * LANGLVL 4.1_ SIZE 60 X 133 LANG COB (COB/PLI) * STRUCTURE: + STANDARD _ MAIN SORT _ MERGE _MATCH * _ USER SORTS * CMPLOPT ________________ _ IDENTIF ________ _ PROCEDR ________ FILES: RPTDEST ________ * _ COBFCPY:SELECT ________ FILEDEF ________ AREAS: _ WKAREA ____________________________________________________________ _ Q-1000 _ INIT1 ________ _ INIT2 ________ C-1000 _ GETTRAN ________ A-1000 _ PRCTRAN ________ T-1000 _ TERM ________ MISC: _ SECTION ____________________________________________________________ _ * PGMCUST ____________________________________________________________ _ LINKAGE: PARMS __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
| Copyright © 2010 CA. All rights reserved. | Email CA about this topic |