1 / 38

The Easy Way to Faultless JCL

About this Presentation. This presentation does not replace or extend any existing TWS manuals. It is an introduction, but not a reference!Please read the TWS manual Planning and Scheduling the Workload" before using variables. This presentation gives you a short introduction to TWS job tailoring.

dillian
Download Presentation

The Easy Way to Faultless JCL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    2. About this Presentation This presentation does not replace or extend any existing TWS manuals. It is an introduction, but not a reference! Please read the TWS manual Planning and Scheduling the Workload before using variables

    3. Overview

    4. Job Tailoring Variables Inclusion or exclusion of inline job statements Inclusion of job statements provided by EQQJBLIB members User-written exits

    5. Variables A variablename has one of following prefixes: &%? A variablename has one of following suffixes: .,/()*&%+-= ? The maximum length of a variable is 8 characters (excluding prefix and suffix) Variables can be used in the job, but not in procedures

    6. Variable Substitution

    7. Types of Variables Standard Variables, e.g. DSN=&OADID..LIST (Application Id) DSN=&OWSID..LIST (Workstation Id) DSN=D&CDAY..LIST (Current day) User defined variables, e.g. DSN=&MYHLQ..TWS.AD DSN=&DATA%SET

    8. User Variables

    9. The Variable Prefix Ampersand & Percent % Question mark ?

    10. Ampersand (&) && is not substituted (because of temp files) Variables which are defined blank are not substituted by TWS, they are treated as normal JCL variables

    11. Percent (%)

    12. Question mark (?)

    13. Variable Tables In tables specified for the operation by using the TABLE directive in the job by using the SEARCH directive in the job In tables specified for the application by using the Modify Current Plan panel by using the Long Term Plan panel in the variable table associated with the run cycle in the variable table associated with the period In the global variable table

    14. Search sequence

    15. Directives SCAN SEARCH SETFORM SETVAR TABLE BEGIN and END FETCH

    16. SCAN

    17. TABLE NAME

    18. SEARCH NAME

    19. SEARCH NAME The GLOBAL or NOGLOBAL keyword specifies if the global variable table will be searched. The APPL or NOAPPL keyword specifies if the the application variable table will be searched. The SEARCH statement must not contain another TWS variable (which is allowed for the TABLE statement)

    20. SETFORM CDATE, CTIME (Current date and time) ODATE, OTIME (Occurrence date and time) .see TWS documentation for complete listing

    21. SETVAR

    22. BEGIN and END The start and end of variable substitution The start and end of lines to be included or excluded from the tailored job

    23. ACTION

    24. FETCH

    25. COMP

    26. PHASE Possible values: SETUP or SUBMIT Default is SUBMIT

    27. TWS Job Tailoring - Summary Predefined variables for date, time etc. User specific variables &, % and ? variables Directives to manage variable substitution, e.g. SCAN, SEARCH, TABLE Inclusion or exclusion of job statements

    28. TWS job tailoring and JCL checkers The JCL checker must be able to correctly handle TWS variables and directives Due to date related variables, the JCL checker should be able to simulate TWS job tailoring for any day in the future

    29. SmartJCL - JCL Validation SmartJCL checks syntax (parameters, quotes, etc.) SmartJCL checks referbacks SmartJCL checks JCL overrides SmartJCL checks catalog actions SmartJCL checks GDG processing SmartJCL checks if program, dataset or proc exist

    30. SmartJCL - Interface to TWS Simulate TWS job tailoring Check JCL in production sequence to simulate catalog actions Select the jobs which should be checked by Application Id, Owner Id, Input Arrival etc.

    31. SmartJCL - Variables, Example (1)

    32. SmartJCL - Variables, Example (2)

    33. SmartJCL - Variables, Example (3)

    34. SmartJCL - Variables, Example (4)

    35. SmartJCL - Variables, Example (5)

    36. SmartJCL - ISPF dialog

    37. SmartJCL - Checking jobs in sequence

    38. SmartJCL - Summary Standard JCL validation, such as syntax checks, catalog actions etc. Simulation of TWS job tailoring Check JCL in production sequence to simulate catalog actions Select jobs which should be checked by Application Id, Owner Id, Input Arrival etc.

More Related