Mainframe Refresher

Embed Size (px)

Text of Mainframe Refresher

CONTENTSNo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Particulars TSO Commands COBOL Tutorial COBOL File status Code COBOL Coding Standard JCL JCL Utilities JCL FAQs CICS Tutorial CICS Abend Codes CICS FAQs DB2 Tutorial DB2 Utilities DB2 FAQs Change man Tool File-Aid Tool Endevor Tool Domain Banking and Finance Domain Telecom PL/I Page No 2 9 43 46 49 73 83 92 116 121 126 144 146 154 172 207 214 232 252

TSO Commands Panel-id show? = PANELID Displays the name of the current panel. Message-id = MSGID Displays the Message-id of the last message. Automatic REFLIST can be accessed by

o o o o

REFLISTD REFLISTL REFACTD REFACTL

These allow you to pull back datasets without seeing the intermediate lists. Commands to quickly add names to your personal lists. These are REFOPEND, REFOPENL, REFADDD, and REFADDL RETP - View the stack of your typed commands. RETF - Pull back commands in reverse order. RETRIEVE - Pop up the most recent typed commands from the stack. CRETRIEV - Pop up the most recent typed commands from the stack. ISRDDN - Shows the current data sets allocation for our ISPF session. XMIT The TSO/E Interactive Data Transmission Facility TRANSMIT command allows you to send data sets or messages to persons on other MVS systems via Network Job Entry or directly to persons on your own system. XMIT node.userid DA('your.pds') OUTDA('your.ps') RECEIVE The TSO/E Interactive Data Transmission Facility RECEIVE command allows you to obtain files transmitted to your userid. The RECEIVE command queries the Job Entry Subsystem RECEIVE INDS('your xmi.ps') DSLIST SAVE /VDL Save the data set list in log data set QPRINT Save the Quick Reference document in a PDS or PS TSO PROFILE The profile command is used either to specify to the system certain user characteristics which are to be used to control the flow of information to and from the terminal or to list the user profile. The user profile is retained throughout each terminal session unless the user wishes to change it by issuing the profile command again and specifying the appropriate operands. CUT DISPLAY This command when given while a member is opened in view/edit mode will show the Clipboard manager. The Clipboard can then be browsed or deleted.

2

KEYLIST Displays the Keylist utility. Invoking KEYLIST OFF can disable it.

KEYS o If the KEYLIST is ON, it displays the keys of current Keylist. o If the KEYLIST is OFF, it displays the Primary keys definition. PFSHOW Displays the value of all the PFKEYS on the panel. They can be removed from the panel by invoking PFSHOW OFF

SCRNAME ON Displays the screen name of the Top Left corner. We can give our own screen name to any screen by writing "SCRNAME myscrname"

SWAP LIST Displays the Active ISPF logical Sessions. LANGUAGE PROCESSING COMMANDS

ASM Invoke assembler prompter and assembler f compiler.

CALC Invoke itf:pl/1 processor for desk calculator mode.

COBOL Invoke cobol prompter and and cobol compiler.

FORT Invoke fortran prompter and fortran ivg1 compiler. PROGRAM CONTROL COMMANDS

CALL Load and execute the specified load module.

LINK Invoke link prompter and linkage editor.

LOADGO

3

Load and execute program. RUN Compile, load, and execute program. TEST Test user program. TESTAUTH Test apf authorized programs. DATA MANAGEMENT COMMANDS ALLOCATE ALLOCATE A DATA SET WITH OR WITHOUT AN ATTRIBUTE LIST OF DCB PARAMETERS. ALTLIB DEFINE OPTIONAL, USER-LEVEL OR APPLICATION-LEVEL SETS OF LIBRARIES CONTAINING SAA/PL EXECS OR CLISTS. THESE LIBRARIES ARE SEARCHED WHEN IMPLICITLY INVOKING AN SAA/PL EXEC OR CLIST. ATTRIB ALLOW DCB PARAMETERS TO BE DYNAMICALLY INTRODUCED AND NAMED FOR USE WITH A SUBSEQUENT ALLOCATE COM. CONVERT SIFT ITF/PL1 AND FORTRAN SOURCE. COPY COPY A DATA SET. (SEE NOTE BELOW.) DELETE DELETE A DATA SET. EDIT CREATE, EDIT, AND/OR EXECUTE A DATA SET. FORMAT

4

FORMAT AND PRINT A TEXT DATA SET. (SEE NOTE BELOW.) FREE RELEASE A DATA SET AND/OR AN ATTRIBUTE LIST. LIST DISPLAY A DATA SET. (SEE NOTE BELOW.) LISTALC DISPLAY ACTIVE DATA SETS. LISTBC DISPLAY MESSAGES FROM OPERATOR/USER. LISTCAT DISPLAY USER CATALOGUED DATA SETS. LISTDS DISPLAY DATA SET ATTRIBUTES. MERGE COMBINE DATA SETS. (SEE NOTE BELOW). PRINTDS PRINT A DATA SET. PROTECT PASSWORD PROTECT DATA SETS. RENAME RENAME A DATA SET. TSOLIB DEFINE OPTIONAL SEARCH LEVEL THAT TSO/E USES WHEN SEARCHING FOR COMMANDS AND PROGRAMS. SYSTEM CONTROL COMMANDS ACCOUNT

5

MODIFY/ADD/DELETE USER ATTRIBUTES. CONSOLE PLACE TERMINAL IN CONSOLE MODE. OPERATOR PLACE TERMINAL IN OPERATOR MODE. PARMLIB LIST/UPDATE TSO/E DEFAULTS. RACONVRT UADS TO RACF DATA BASE CONVERSION UTILITY. SYNC SYNCHRONIZE THE BROADCAST DATA SET WITH USER IDS FROM THE UADS AND RACF DATA BASE. SESSION CONTROL CONSPROF DEFINE USER CONSOLE CHARACTERISTICS. EXEC INVOKE COMMAND PROCEDURE. EXECUTIL ALTER REXX ENVIRONMENT. HELP INVOKE HELP PROCESSOR. LOGOFF END TERMINAL SESSION. LOGON START TERMINAL SESSION. PROFILE

6

DEFINE USER CHARACTERISTICS. SEND SEND MESSAGE TO OPERATOR/USER. TERMINAL DEFINE TERMINAL CHARACTERISTICS. TIME LOG SESSION USAGE TIME. TSOEXEC EXECUTE AN AUTHORIZED OR UNAUTHORIZED COMMAND FROM WITHIN AN UNAUTHORIZED ENVIRONMENT. WHEN CONDITIONALLY EXECUTE NEXT COMMAND. FOREGROUND INITIATED BACKGROUND COMMANDS CANCEL CANCEL BACKGROUND JOB. OUTPUT DIRECT OUTPUT MEDIUM FOR BACKGROUND JOB. STATUS LIST STATUS OF BACKGROUND JOB. SUBMIT SUBMIT BACKGROUND JOB. INTERACTIVE DATA TRANSMISSION FACILITY. RECEIVE RECEIVE DATA SENT TO YOU BY A TRANSMIT COMMAND. TRANSMIT

7

TRANSMIT MESSAGES AND/OR DATA SETS VIA NODES DEFINED TO JES

COBOL TutorialComputer Programming A Program is a set of instructions that enables a computer to process data, there are two types of computer programs which are 1- Operating system programs, which control the overall operation of the system and 2- Applications programs, it is the actuall program tasks requried by the users. The term used to descriebe all type of programs is called software in general application program reads input , process it, and produce information or out put the user neads. A set of computerized business procedures in an application area is called an information systems. Application program development process 1. Determain program specifications. 2. Design the program planning tools. 3. Code and enter the program. 4. Compile the program. 5. Test the program. 6. Document the program. History of Cobol. Developed by 1959 by a group called COnference on Data Systems Language (CODASYL). First COBOL compiler was released by December 1959. First ANSI approved version 1968 Modified ANSI approved version 1974 (OS/VS COBOL) Modified ANSI approved version 1985 (VS COBOL 2) Interduction to Cobol COBOL is a high-level programming language first developed by the CODASYL Committee (Conference on Data Systems Languages) in 1960. Since then, responsibility for developing new COBOL standards has been assumed by the American National Standards Institute (ANSI). The word COBOL is an acronym that stands for COmmon Business Oriented Language. As the the expanded acronym indicates, COBOL is designed for developing business, typically file-oriented, applications. It is not designed for writing systems programs. For instance you would not develop an operating system or a compiler using COBOL Coding Sheet. 1-6 7 8-11 12-72 Page/line numbers - Optional (automatically assigned by compiler) Continuity (-), Comment (*), Starting a new page (/), Debugging lines (D) Column A -Division, Section, Paragraph, 01,77 declarations must begin here. Column B -All the other declarations/statements begin here.

This book is written based on IBM COBOL for OS/390 V2R2.

8

73-80 Identification field. It will be ignored by the compiler but visible in the source listing. Language Structure. Character Set Word Clause Statement Sentence Paragraph Section Division Program :::::::::Digits (0-9), Alphabets (A-Z), Space (b), Special Characters (+ - * / ( ) = $ ; " > < . ,) One or more characters- User defined or Reserved. One or more words. It specifies an attribute for an entry. One or more valid words and clauses. One or more statements terminated by a period. One or more sentences. One or more paragraphs. One or more sections or paragraphs. Made up of four divisions.

Divisions in COBOL. There are four divisions in a COBOL program and Data division is optional.

1. 2. 3. 4.

Identification Division. Environment Division. Data Division. Procedure Division.

Identification Division. This is the first division and the program is identified here. Paragraph PROGRAM-ID followed by userdefined name is mandatory. All other paragraphs are optional and used for documentation. The length of user-defined name for IBM COBOL is EIGHT.

IDENTIFICATION DIVISION. PROGRAM-ID. AUTHOR. INSTALLATION. DATE-WRITTEN. DATE-COMPILED. SECURITY. PROGRAM NAME. COMMENT ENTRY. COMMENT ENTRY. COMMENT ENTRY. COMMENT ENTRY. COMMENT ENTRY.

Security does not pertain to the operating system security, but the information that is passed to the user of the program about the security features of the program. Environment Division. Only machine dependant division of COBOL program. It supplies information about the hardware or computer equipment to be used on the program. When your program moves from one computer to another computer, the only section that may need to be changed is ENVIRONMENT division. Configuration It supplies information concerning the computer on which the program will be compiled

9

Section.

(SOURCE-COMPUTER) and executed (OBJECT-COMPUTER). It consists of three paragraphs - SOURCE COMPUTER, OBJECT-COMPUTER and SPECIAL-NAMES. This is OPTIONAL section from COBOL 85. IBM-4381 (Co