Powered By Blogger

Wednesday, September 26, 2007

Need anything more ?

Is that you need any materials more, just keep me posted by comments or thru mail.
I would keep you updated !

Bharath.

Friday, September 21, 2007

Mainframe: JCL FAQ's

Mainframe: JCL FAQ's

TSO COMMANDS

ABCODE - DISPLAYS COMMON ABEND CODES AND POSSIBLE FIXES
ACCMCHK1 - DISPLAYS ACCOUNTING INFORMATION (INFO IN JOB CARD)
ACCTHELP - GIVES: GLSUM,COST CTR,CUST CODE,APPL ID'S,SYS CDDE,ACCESS CODE
ACESHIST - BROWSE ACES INFORMATION FROM ORIGINAL ACES SYSTEM
ACF - DISPLAYS YOUR TSO LOGON RULES INFORMATION (AT ? ENTER L * )
ACFHELP - DEFINITIONS/EXAMPLES ARE GIVEN WHEN USING 'ACFRULE'
ACFRULE - USED TO DEFINE RULES ON WHAT OTHERS CAN DO TO YOUR DATASETS/PDS
BPRINT - USE TSO BPRINT TO PRINT THE DATASET YOU ARE CURRENTLY BROWSING
BRCLIST - BROWSE ALL DATASETS THAT CONTAIN THIS CLIST (REXX)
BRLINK - BROWSE ALL LINK LIBRARY DATASETS THAT CONTAIN THIS MEMBER
BRMLIB - BROWSE ALL ISPMLIBS THAT CONTAIN THIS MEMBER
BROBJLB - BROWSE ALL OBJECT LIBRARY DATASETS THAT CONTAIN THIS MEMBER
BRPLIB - BROWSE ALL PANEL LIBRARY DATASETS THAT CONTAIN THIS MEMBER
BRPROC - BROWSE ALL PROC LIBRARY DATASETS THAT CONTAIN THIS MEMBER
BRPSBLIB - BROWSE TEST PSBLIB
BRSLIB - BROWSE ALL SKELETON LIBRARY DATASETS THAT CONTAIN THIS MEMBER
CALCU - USED TO DO SIMPLE CALCULATIONS (ADD, SUB, MULT AND DIVIDE)
CAWRITER - LIST OF CA-DISPATCH UNIVERSAL WRITER NAMES AND DEFINITIONS
CA7 - INVOKE JOB SCHEDULE PRODUCT (CA-7 PRIMARY OPTION MENU)
CA7HIST - VIEW UP TO 14 MONTHS OF JOB EQUEST HISTORY
CA7LOOK - SHOWS ALL CONTROL-M RUN REQUESTS SUBMITTED FOR TODAY
CA7REQ - USED TO SCHEDULE HOST JOBS AT AUBRUN HILLS
CHAMPDOC - DOCUMENTATION OUTLINING CHAMP RELATED QUESTIONS
CHAMPRPT - BROWSE CHAMP DAILY MOVE REPORT,UP TO LAST 5 DAYS OF INFORMATION
CMI - CNTLM JOB SCHEDULES BY JOB
CMPOST - WILL HELP YOU CATALOG UP ROUND REEL TAPES
CMPOSTC - WILL HELP YOU CATALOG UP CARTRIDGE TAPES
CMR - CNTLM JOB PERFORMANCE REPORTING SYSTEM, STATS FOR EXECUTED JOBS
COMPARE2 - USE ISPF OPTION 3.13 TO MAKE COMPARES
COUNT - EXECUTE THE LINES OF CODE COUNTER (SLOC COUNTER)
CSPACE - CALCULATES THE NEEDED ALLOCATIONS FOR DASD BASED ON INPUT INFO
DBADOCSE - DBA DOCUMENTATION OF INTEREST TO AN INFORMATION ANALYST
DBAPROC - DEFINITION OF "DBA'S" RESPONSIBILITIES AND SUPPORT PROCEDURES
DBAREQ - USED TO REQUEST: INCLUDE MOVES, DVAN, PSB (NUCREQ) AND MISC
DBASE - DISPLAYS DBA CONTACTS BY AREA THAT THEY SUPPORT
DBCHANGE - INITIAL DBA NOTIFICATION PANEL FOR DATABASE CHANGES
DBCREATE - USED TO CREATE A COPY OF A TEST DATABASE IN YOUR CATALOG
DBMAP - DISPLAYS A "PSB" MAP OF A PROGRAM OR A "DBD" MAP OF A DATABASE
DB2TIPS - TIPS ON SETUP,CODING,TESTING,CONVERTING TO DB2 DATA BASES
DISASTER - UPDATES RECOVERY PRIORITIES FOR JOBS AND ONLINE IMS PGMS
DISPDESC - DISPLAYS A DESCRIPTION AND OWNER FOR DATABASES
DPRINT - USE DPRINT TO PRINT A DATASET FROM A LISTING
DRARPTS - BROWSE DRA BACKUP REPORTS FOR CURRENT AND 4 WEEKS BACK
DSNREST - BROWSE LETTER TO COMMUNITY ON HOW TO RESTORE FROM DRA BACKUPS
DVANJCL - CREATES JCL TO RUN TEST DATAVANTAGE AS A BMP OR IN A DLI REGION
DVANREQ - CREATE A DATAVANTAGE REQUEST FOR THE DBA GROUP TO PROCESS
DVBTS - ALLOWS DATAVANTAGE TO BE EXECUTED IN "BTS" FOR UP TO 3 DB'S
EPRINT - USE EPRINT TO PRINT THE DATASET YOU ARE CURRENTLY EDITING
FATIPS - FILE AID TIPS FOR REFRESH 97 VERSION
GDG - BUILD OR DELETE GDG BASES
GENPSB - WILL GEN A PSB FROM THE PROD PAN LIB TO VERSION 1 PSBLIB ONLY
GSAMB37 - HOW TO PREVENT BLOCK ERRORS WHEN COPYING GSAM FILE FOR RESTART
HOLDJCL - VIEW A JCL MEMBER IN ENDEVOR HOLD
HOLDSORC - VIEW A SOURCE CODE MEMBER IN ENDEVOR HOLD
IMFTS - INVOKE BOOLE AND BABBAGE
IMSCHKPT - ALLOWS INQUIRY/UPDATE OF CHECKPOINT LIMIT/NUMBER AND RUN NUMBER
INCREQ - REQUESTS DATABASE INCLUDE MOVE TO PRODUCTION OR TEST
INITIAL - SET YOUR "BIN" AND "ACCT CODE" FOR OTHER CLISTS TO USE
IPACT - DISPLAYS IPACS INFO FOR A GIVEN JOB, PGM OR ACCESS CODE
IPCABEND - BROWSE UPTO 6 DAYS OF THE DAILY AHIPC MORNING REP FOR PROB
IPCPROB - BROWSE THE AHIPC PROBLEM TICKET FILE AND THE OPEN TICKET STATUS
IPCUSER - BROWSE/PRINT IPC USER GUIDE(VOL5), STDS FOR OUR ACCT., ETC;
ISPFTIPS - REFRESH 97 ISPF TIPS AND ENVIRONMENT SETTING CHANGES
JCLFORM - FOR NEW JCL OR NEW STEPS: THIS WILL REFORMAT THE JCL TO STDS
JCLX - THIS SHOWS ALL DATASETS (IN SEQ) AND THE JOBS THAT USE THEM
JOBHIST - SHOWS WHEN A JOB WAS STARTED, COMPLETED, CPU/REAL TIME, ETC;
LA - DISPLAY THE NAMES OF LIBRARIES CURRENTLY ALLOC TO YOUR LOGON ID
LIMITCHG - DISPLAYS CHECK POINT LIMIT CHANGES FOR THE LAST 7 DAYS
LINKDATE - DISPLAY LINKDATE FOR A GIVEN MEMBER FROM A SPECIFIC LIB
LISTA - LISTA ST H - LISTS ALL ALLOC DATASETS AND THEIR HISTORY INFO
LISTA - USED TO DISPLAY THE NAMES OF CURR ALLOC DATASETS TO YOUR ID
LISTBC - USED TO LIST MESSAGES SAVED IN THE BROADCAST DATASET
LISTC - LISTS ENTRIES FROM EITHER THE MASTER OR USER CATALOG
LISTC1 - EX. LISTC EN('F.F133152') ALL - WILL LIST MAX. ENTRIES ALLOWED
LISTC2 - EX. LISTC VOL - WILL LIST YOUR CATLG & VOLUMES DSN'S RESIDE ON
LISTD - DISPLAYS BASIC ATTRTIBUTES OF DATASET SPECIFIED
LISTD1 - LISTD 'SYS2.TESTLIB(B0450)' - WILL DISPLAY PROGRAM LINK INFO
LJOB - DISPLAY CA7 SCHEDULE INFO FOR THE JOB ENTERED
LOCKOUT - THIS CROSS-REF IS GIVEN IN: JOB, DATABASE, PROGRAM AND SEG SEQ
LOGONID - BROWSE FILE FOR TSO LOGON ID'S(UID,FULL NAMES,LAST DATE USED)
MFSTEST - USED TO LINK OUT MFS SCREENS FROM PROD, TEST OR YOUR CATALOG
MFS3270 - USED TO CREATE/LINK NEW MFS SCREENS FROM YOUR CATALOG
MISCREQ - MISCELLANEOUS DBA REQUEST PANEL
MSG - THIS COMMAND SENDS A MULTI LINE MESSAGE TO A TSO ID
MSGSEND - THIS COMMAND SENDS A MULTI LINE MESSAGE TO A TSO ID
NEWIPACS - SETS UP FILES FOR RUNNING IPACT CLIST
NOTCOMP - GENERATE A REPORT OF PROGRAMS NOT COMPILED FOR SPECIFIC SEG
NOTIFY - ASSIGN PROGRAMMERS TO A PGM SO OPERATIONS CAN CALL ON ABENDS
OQACCLOC - VIEW DATASET OF CHANGED SOURCE LINES OF CODE COUNTS
OQACDB2 - ID FOREIGN KEY TABLES FOR DB2 TABLE-CREATE FILE FOR ISEE MVSWB
OQACDB2U - UNLOAD DB2 TABLE W/ DSNTIAUL UTIL.-CREATE FILE FOR ISEE MVSWB
OQACEJCL - EDIT ACCOUNT SUPPORT GROUPS ENDEVOR JCL LIBRARY
OQACERPT - BROWSE ENDEVOR MASTER CONTROL FILE - ELEMENT CATALOG REPORT
OQACIMSQ - VIEW IMS DISPLAY Q INFORMATION
OQACJCL - EDIT ACCOUNT SUPPORT GROUPS JCL LIBRARY-EX: FILEAID SCAN JCL
PANXREF - SHOWS "EVERY" INCLUDE (DB & PGM) AND "EVERY" PGM THAT USES IT
PDSCMP - COMPRESS A PDS IN SHARE MODE
PEEK - RUN PEEK EVALUATION SYSTEM - PL/I ONLY - COMPLEXITY EVALUATION
PGMTBLX - LIST ALL DB2 TABLES USED BY THE SPECIFIED PROGRAM
PRESTORE - COPIES AN UNCATLG PRODUCTION DATASET FROM DASD INTO YOUR CATLG
PRINTQIP - PRINT VARIOUS QIP GROUP RESULTS, INCLUDING THE ACES SYSTEM
PRODDBIC - ALLOWS YOU TO VIEW DATABASE INCLUDES FROM PWDDB.COBOL.INCLUDES
PRODDBIP - ALLOWS YOU TO VIEW DATABASE INCLUDES FROM PWDDB.PLI.INCLUDES
PRODINCL - VIEW AN INCLUDE MEMBER IN ENDEVOR PRODUCTION
PRODJCL - VIEW A JCL MEMBER IN ENDEVOR PRODUCTION
PRODSORC - VIEW A SOURCE CODE MEMBER IN ENDEVOR PRODUCTION
PROGXREF - GENERATE A REPORT OF PGMS AFFECTED BY DATABASE SEGMENT CHANGES
PRTCUT - PRINT REQUEST TO CUT SHEET FORMS(LETTER) AT SPO C.O.
PRTDOC - PRINT INFO. ON MFS, DATAVANTAGE, IMS CMDS, CHKPT, DESIGN REV
PRTFTD - PRINT REQUEST AT FLINT PRINT CENTER IN 1UP FORM
PRTJCL - PRINT REQUESTED "JCL" FROM PWDS1.SPOCH.JCLPAN
PRTLJOB - PRINT ON PC LPT1 PRINTER-CA7 SCHEDULE INFO FOR THE JOB ENTERED
PRTMIN - PRINT REQUEST TO MINIMUM PRINT AT SPO C.O.
PRTTRD - PRINT REQUEST TO AT TROY OUTPUT CENTER
PRT2UP - PRINT REQUEST AT FLINT PRINT CENTER IN 2UP FORM
PSBREQ - REQUEST PSB GENERATION FOR PRODUCTION AND TEST
RECEIVE - RECEIVE A DATASET FROM ANOTHER TSO ID
RESET - USED TO LOAD NEW/CHANGED ACF RULES WITHOUT LOGGING OFF
RESTORE - RESTORES YOUR OWN ARCHIVED DATASET/PDS BACK INTO YOUR CATALOG
RFSJCL - BUILDS CHECKPOINT RESTART JCL IN YOUR CATALOG FOR A PROGRAM
SCAN - USED TO SUBMIT A SCAN AGAINST PROD, TEST OR JCL LIBRARIES
SCANOUT - USED TO BROWSE THE DATASET CONTAINING THE RESULTS OF YOUR SCAN
SCHEDULE - LIST THE AUBURN HILLS SPO SCHEDULING CONTACT NAMES AND NUMBERS
SECINFO - VARIOUS DOCUMENTATION ON SECURITY ITEMS OF INTEREST TO SPO
SETERMS - DISPLAYS DEFINITIONS OF TERMS AND ACRONYMS FOR SPO ACCOUNT
SMR - SYSLOG MANAGEMENT AND RETRIEVAL
SPACE - CALCULATES SPACE REQUIRED FOR DATA BASES BASED ON BLOCK SIZE
START - USED TO START UP A PROGRAM/TRANSACTION ON IMST THAT IS STOPPED
TAPERECS - CALCULATES THE NUMBER OF RECORDS ON A TAPE
TBLPGMX - LIST PROGRAMS THAT USE THE SPECIFIED DB2 TABLE,VIEW,SYSTEM CODE
TCOMP2 - USED TO LINK OUT PROGRAMS FROM PROD, TEST OR YOUR CATALOG
TESTINCL - VIEW AN INCLUDE MEMBER IN ENDEVOR TEST
TESTJCL - VIEW A JCL MEMBER IN ENDEVOR TEST
TESTSORC- VIEW A SOURCE CODE MEMBER IN ENDEVOR TEST
TIME - DISPLAY CURRENT SYSTEM DATE AND TIME
TLSINQ - VIEW THE TAPE LIBRARY LISTING IN DATASET OR VOLUME SERIAL SEQ
TRACE - USED TO TRACE A JOB IN IMSTEST (BMP OR TRANSACTION)
TRANCNTS- SHOWS TRANS. PER MONTH (D8806=JUNE 88) AND # OF TIMES USED
TRANSMIT- TRANSMIT A DATASET TO ANOTHER TSO ID
TRANSMI1- EX..TRANSMIT (IPCNODE.HIGHLEVEL) DATASET (DSN)
TRANSMI2- EX..TRANSMIT (PLIPC4B.PDSJBTD) DATASET ('USERID.PLI.STDS')
VSPACE - CALCULATES SPACE REQUIRED FOR DATA BASE INDEXES
WAAPLNKL- LIST DATASETS CONTAINED IN THE LINKLIST
WHEREIS - ISPSLIB MEMBER - FIND DATASET THAT CONTAINS SKELETON MEMBER
WHEREIS - ISPPLIB MEMBER - FIND DATASET THAT CONTAINS PANEL MEMBER
WHEREIS - SYSEXEC MEMBER - FIND DATASET THAT CONTAINS REXX MEMBER
WHEREIS - SYSPROC MEMBER - FIND DATASET THAT CONTAINS CLIST MEMBER
WHEREIS - LINKLIST MEMBER - FIND DATASET THAT CONTAINS LINKLIB MEMBER
WHEREIS - ISPMLIB MEMBER - FIND DATASET THAT CONTAINS MESSAGE MEMBER
WHEREPGM- MEMBER - LOCATES ALL PROGRAM LIBRARIES THAT CONTAIN MEMBER
WHEREPSB- MEMBER - LOCATES ALL PSB LIBRARIES THAT CONTAIN MEMBER

ISPF COMMANDS

Command Function
< Data shift left
shifts a single line of program source code to the left without affecting the program labels or comment ie. data from column one to the first blank and data following several blanks are not moved. May be specified with a number identifying the distance to move (default 2).

<< Block data shift left
All of the lines in the block are affected as if you typed individual data shift left commands. May be specified with a number identifying the distance to move (default 2).

> Data shift right
As for data shift left but the opposite direction. May be specified with a number identifying the distance to move (default 2).

>> Block data shift right

( Column shift left
Works similarly to data shift left but moves everything within the bounds, nothing stays fixed in place. May be specified with a number identifying the distance to move (default 2).

(( Block column shift left

) Column shift right

)) Block column shift right

a After
used with copy, move, or paste to specify the line after which the copied/moved lines are to be inserted.

b Before
used with copy, move, or paste to specify the line before which the copied/moved lines are to be inserted.

bnds Display bounds above this line
Displays the current boundary positions which can be changed by tying < and > in the new boundary positions that you require.

c Copy
Copies this line either to another place within the current file (using a, b, or o to identify destination) or to another file (using the create, replace, or cut commands). Can be specified with a number to indicate that multiple lines are to be copied.

cc Block copy

cols Display the column ruler above this line

d Delete
Deletes this line from the file. Can be specified with a number to indicate that following lines are also to be deleted.

dd Block delete

f Display the first excluded line
Can be specified with a number to display more than one excluded lines. This command is only valid on excluded lines.

i Insert a new line after this one
Can be specified with a number to insert multiple lines.

l Display the last excluded line
Can be specified with a number to display more than one excluded lines. This command is only valid on excluded lines.

lc Convert all text on this line to lower case
Can be specified with a number to convert more than one line to lower case.

lcc Block convert to lower case

m Move
Works the same as copy except that the lines are removed from their current location.

mm Block move

mask Display the mask line above this one
The mask defines the default content for inserted lines.

o Overlay (used with copy and move to specify the line into which the copied/moved line is to be inserted - only spaces are replaced). Can be specified with a number to indicate that following lines are also to be overlaid.

oo Block overlay (the lines to be copied/moved are inserted into the block as many times as they will fit)

r Repeat - create a duplicate of this line
Can be specified with a number to indicate that additional duplicate lines are to be produced.

rr Block repeat
Can be specified with a number to indicate that multiple duplicates of the block are to be produced.

s Show the excluded line that has the least indentation
Can be specified with a number to display more than one excluded lines. When multiple lines are displayed they may not be together. This command is only valid on excluded lines.

tabs Show the tab settings above this line
Hardware tabs positions are indicated by asterisks (*) and software tabs by hyphens (-) or underscores (_).

te Text Entry mode - allows bulk insert following this line
You can start entering data without paying any attention to lines as the text will wrap automatically. Press the enter key to exit from text entry mode.

tf Text flow - flows the text between the margins for this line and following lines until a blank line is found, the indentation changes, or a special character (period, colon, ampersand, less than, or form feed) is found in the first column.

tj Text Join - merges this line with the following one

ts Text split - splits this line in two
You need to position the cursor at the position on the line where you want the split to occur.

uc Convert all text on this line to upper case
Can be specified with a number to convert multiple lines.

ucc Block convert to upper case

x Exclude this line from the display
Can be specified with a number to exclude multiple lines. This command is useful when you need to view two blocks of data that are in different locations within the file, just exclude the intervening data from the display.

xx Block exclude

. label assignment

You can assign a label to any non-excluded line by typing a period followed by the label name. The label can then be used to identify the line in primary commands. You cannot start labels with "z" as these labels are reserved for system use.

JCL FAQ's

JCL

Q1. What are the kinds of job control statements?
A1. The JOB, EXEC and DD statement.


Q2. What is the meaning of keyword in JCL? What is its opposite?
A2. A keyword in a JCL statement may appear in different places and is recognized by its name, eg. MSGCLASS in the JOB statement. The opposite is positional words, where their meaning is based on their position in the statement, eg. in the DISP keyword the =(NEW,CATLG,DELETE) meanings are based on first, second and third position.


Q3. Describe the JOB statement, its meaning, syntax and significant keywords.
A3. The JOB statement is the first in a JCL stream. Its format is // jobname, keyword JOB, accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFIY, CLASS, etc.


Q4. Describe the EXEC statement, its meaning, syntax and keywords.
A4. The EXEC statement identifies the program to be executed via a PGM=program name keyword. Its format is //jobname EXEC PGM=program name. The PARM= keyword can be used to pass external values to the executing program.


Q5. Describe the DD statement, its meaning, syntax and keywords.
A5. The DD statement links the external dataset name (DSN) to the DDNAME coded within the executing program. It links the file names within the program code to the file names know to the MVS operating system. The syntax is // ddname DD DSN=dataset name. Other keywords after DSN are DISP, DCB, SPACE, etc.


Q6. What is a PROC? What is the difference between an instream and a catalogued PROC?
A6. PROC stands for procedure. It is 'canned' JCL invoked by a PROC statement. An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset.


Q7. What is the difference between a symbolic and an override in executing a PROC?
A7. A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, eg. &symbol=value. An override replaces the PROC's statement with another one; it substitutes for the entire statement.


Q8. What is RESTART? How is it invoked?
A8. RESTART is a JOB statement keyword. It is used to restart the job at a specified step rather than at the beginning.


Q9. What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?
A9. GDG stands for generation data group. It is a dataset with versions that can be referenced absolutely or relatively. It is defined by an IDCAMS define generation datagroup execution.


Q10. Explain concatenating datasets.
A10. Datasets can be grouped in a DD statement one after another, eg. in a JOBLIB statement where the load module can exist in one of many datasets.


Q11. What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
A11. DISP=OLD denotes exclusive control of the dataset; DISP=SHR means there is no exclusivity.


Q12. What is MOD and when would you use it?
A12. DISP=MOD is used when the dataset can be extended, ie, you can add records at the end of an existing dataset.


Q13. What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?
A13. The keywords associated with the DCB parameter are LRECL, RECFM, BLKSIZE and DSORG. The DCB information can be supplied in the DD statement. The sysem looks for DCB information in the program code first.


Q14. How do you designate a comment in JCL?
A14. The comment statement is //* followed by the comments.

Q15. What is the meaning of the EXEC statement keyword, COND? What is its syntax?
A15. COND specifies the conditions for executing the subsequent job step. The value after the COND= is compared to the return codes of the preceding steps and if the comparison is true, the step is bypassed. (If this answer confuses you, welcome to the club - memorize it and don't ask questions!)


Q16. What is the improvement to COND= in the latest version of MVS?
A16. MVS now allows for an IF bracketed by an END IF around any job step to replace the COND= syntax. Again, if the IF statement is true, the step is bypassed.


Q17. What is the purpose of the PARM keyword in the EXEC statement?
A17. The value after the PARM= specifies control information to be passed to the executing program of the job step.


Q18. What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?
A18. REGION specifies the maximum CPU memory allocated for a particular job or job step. If REGION is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.


Q19. What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with?
A19. TIME specifies the maximum CPU time allocated for a particular job or job step. If TIME is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.


Q20. What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?
A20. Data definition name is the eight character designation after the // of the DD statement. It matches the internal name specified in the steps executing program. In COBOL that's the name specified after the ASSIGN in the SELECT ASSIGN statement. Dataset name is the operating system (MVS) name for the file.


Q21. How is the keyword DUMMY used in JCL?
A21. For an output file DUMMY specifies that the output is to be discarded. For input it specifies that the file is empty.


Q22. What does the keyword DCB mean and what are some of the keywords associated with it?
A22. DCB stands for data control block; it is a keyword for the DD statement used to describe datasets. Keywords associated with it are BLKSIZE, DEN, LRECL and RECFM.


Q23. What is the difference between BLKSIZE and LRECL?
A23. BLKSIZE specifies the number of bytes


JCL Technical FAQ's


Q What is JCL ?
A JCL stands for Job Control Language

Q What is the difference between keyword and positional parameters ?
A Positional parameters are characterized by their position in the operand field in relation to other parameters.Keyword parameters are positionally independent with respect to others of their type and consisting of a keyword followed by an equal sign and variable information.

Q What is a DISP ?
A DISP is a keyword parameter which is defined on the DD statement and which consist of the following positional subparameters: DISP=(Status, Normal Disp, Abnormal Disp). The DISP parameter describes the current status of the dataset (old, new, or modified) and directs the system on the disposition of the data set (pass, keep, catalog, uncatalog, or delete) either at the end of the step or if the step abnormally terminates. DISP is always required unless the data set is created and deleted in the same step.

Q What is DISP=SHR ?
A DISP=SHR permits old data sets to be shared. SHR is identical to OLD except that several jobs may read the dataset concurrently in multiprogramming environments. SHR must be used only for input data sets; use OLD or MOD if data set is modified. Sharing data set is necessary because public libraries like SYS1.LINKLIB or the subroutine libraries should be available to every job in the system.

Q What is DISP=MOD ?
A DISP=MOD modifies a sequential data set. It is a convenient way to add data to the end of sequential dataset. If the data set doesn't exist, the system changes MOD to NEW unless the VOL parameter request specific volume. When VOL is coded, the stem expects to find data set on the specified volume and terminates the step if it cannot find it. MOD is the usual way of extended data sets in to several direct-access volumes.

Q What is DISP=PASS ?
A PASS passes the data set on to subsequent job steps, and each step can use the data set once. It is a positional subparameter of the DISP which could only be specified under normal termination action. Pass saves time because the system retains the data set location and volume information.

Q What are the parameters that have to be coded on a DD statement in order to retrieve a cataloged data set ?
A The minimum parameters needed are DSN and DISP.

Q How does the system get information about the block size ?
A DCB info comes from :- 1) Program - FD: BLOCK CONTAINS 3 RECORDS RECORD CONTAINS 100 CHARACTERS2) The label - like a tape3) From the VTOC - for Dasd4) From the JCL - DCB=BLKSIZE=nnn.

Q What is a Label ?
A LABEL is a keyword parameter which can be specified on DD statement and consists of the following subparameters:LABEL=(Relative File #, Type of Label Processing)The LABEL parameter tells the type of label, the relative file number,and whether the data set is to be protected for input or output.

Q When should be NL be specified as a type of label processing ?
A NL should be specified when a program needs to process unlabeled tapes NL can also be specified when the pgm wants to create unlabeled tape because the system's default action, in cases when parameter is not specified, will create IBM standard label. Nonlabeled tapes are often used for sending tapes to another installation. That way you don't have to worry about the tape label corresponding to the standards at the other installation or about accidentally matching the volume serial number of an existing tape at the installation.

Q How do you describe the input data which is a part of the input job stream ?
A You should use either DD * or DD Data.

Q What is the difference between * and Data ?
A DD * and DD DATA describe the input data which follows the above mention cards. If the input data contains record switch // in col 1 and 2 then DD Data should be used.

Q What is the purpose of SPACE parameter ?
A It is a keyword parameter which should allocated on the DD statement for the output data sets stored on the disk.It consists of the following subparameters:SPACE=(BLKS/CYL/TRK,(primary,secondary,index),RLSE,CONTIG)

Q What is a RLSE ?
A RLSE releases all unused space when the data set is closed. It permits you to allocate more space than perhaps, it needed without wasting space. Space is released only if the data set is not empty and if the data set is closed after being opened.

Q What is a CONTIG ?
A CONTIG requests the primary space be allocated only on contiguous tracks and cylinders, that is all tracks on a cylinder are contiguous, and if more than one cylinder is needed, the cylinders are also contiguous. Always code CONTIG if track overflow is used.

Q What is a PDS ?
A PDS is a library type of data set organization consisting of Directory and Members. The directory consists of blocks, and each block is 256 bytes in length and can hold up to 5 members. Each member of the PDS is a sequential data set.

Q What is a Temporary Data Set ?
A Temporary data sets are used for storage needed only for the duration of the job. If the DISP parameter doesn't delete the data set by the end of the job, the system will delete it. Deleting a tape data set dismounts the tape, whereas deleting a dataset on a direct-access volume release the storage. A data set is marked temporary by omitting the DSN parameter or by coding DSN=&&dsname. The system assign a unique name to the data set when the DSN parameter is omitted, and any subsequent steps using the dataset refer back to the DD statement.

Q What is COND parameter ?
A It is a keyword parameter which can be specified on the JOB or EXEC statements. COND consists of 3 subparameters:code(0 thru 4095),logical operator, and stepname of the step that is going to be compared.The purpose of the COND is to determine whether the step should be executed or bypassed. If condition specified in the COND parameter is true,the step is bypassed.

Q How do you specify a COND parameter for a job step so that the step will never be executed ?
A COND=(0,LE) or COND=(4095,GE).

Q What does COND=ONLY mean ?
A It means that this job step will be executed only if a previous step had abnormally terminated.

Q What does COND=EVEN mean ?
A It means that this jobs step will be executed even if a previous step abnormally terminated.

Q What is a NAME ?
A Name is a positional parameter which identifies the person or group responsible for a job.

Q What is a PRIORITY ?
A It is a keyword parameter which specifies a job initiation priority within its job class. When the job is initiated, the system will convert the job's priority into a dispatching priority so that job's task can complete with other tasks for use of main storage and CPU resources.

Q How does the system determine the priority of a job for execution ?
A First the system determines which job has the highest class. Each class has a job queue with jobs of different priorities. The system will select the job for execution that has the highest PRTY (0 thru 15) 15 is the highest priority.

Q What is a MSGCLASS parameter ?
A It is a keyword parameter which specifies the output class to which system messages for your job are to be routed. Output class is an alphabetic (A thru Z) or numeric (0 thru 9) character. The default for MSGCLASS parameter will be A. System messages and output data sets can be routed to the same output class. You can code the MSGCLASS parameter in the Job statement and the SYSOUT parameter on the DD statement.

Q What is MSGLEVEL parameter ?
A It is a keyword parameter which indicates what job output is to be written as a part of output listing. The following outputs can be requested: the Job statement;all input job control statements;allocation, disposition and allocation recovery messages(allocation/termination message)MSGLEVEL=(statements, messages)Statements:- 0 - only the job statement is to be written;- 1 - all input control statements, cataloged procedure statements and the internal representation of procedure statement parameters after symbolic parameters substitution are to be written;- 2 - only input job control statements are to be written;Messages:- 0 - No allocation/termination messages are to be printed unless the job terminates abnormally;- 1 - All allocation/termination messages are to be printed.

Q How can you check for syntax or JCL errors without actual execution of a job ?
A TYPRUN=SCAN should be specified on a job card

Q What is the difference between the COND parameter specified on the EXEC statement and the one specified on the JOB statement ?
A COND parameter specified on EXEC statement determines whether step should be bypassed or executed.COND parameter defined on the JOB statement will determine whether Job should be terminated at a certain point or continued. When COND parameter is defined on the JOB statement, the system evaluates condition specified in the COND parameter before beginning of any job step and compares the code specified in the COND parameter with the return code of all previous jobsteps. If that condition is true, the rest of the job steps are bypassed.



JCL Questions.

1. What are all the Jcl statements used in Jcl? & What are the jcl statements you have coded so far?
A: JOB, DD , EXEC, INCLUDE.

2. What is the difference between the Positional parameters & keyword parameters, give examples where they are used?
A: Positional Parameters ----
Keyword Parameters ---- To specify in the JCL. Positioned wise specified.
Used along with DD, JOB statement.


3. What are the operands coded in a JOB statement?
A: Access, Room, Time , Msglevel, Msgclass, Notify, Typrun

4. How many characters can be coded for a jobname? What were you coding as a jobname?
A: Eight. Userid with two extra characters.

5. What is the difference between the Comment statement and the Comments? How they were coded in a jcl?
A:
They are coded in the JCL as “ //* Comments ”


6. How will you check the syntax of the JOB without executing it?
A: Typrun = Scan in the job card information will let us know the error in the JCL..

7. What are all the parameters needed in a DD statement to create a dataset thru Jcl? How a Partitioned dataset is created through JCL?
A: DD statement, Disp parameters , unit , volume , Space will be coded along with DD.
DD DSN= Dataset-name DISP= ( NEW, DELETE, KEEP )
DCB=( DSORG= PO, LRECL = 80 , BLKSIZE = 800 )

8. How is the Catalog procedure called from a JCL, if it is lying in your own datasets?
A: Through EXEC Proc-Name statement.


9. What is the difference between the Instream Procedure & Catalog Procedure?
A: Instream procedure is coded in the same JCL. Catalog procedure has to be called

10. What is the Symbolic parameter? What for it is needed? Where it is most commonly used?
A: Symbolic Parameter is used to pass the value to the Proc.

11. Can you explain the DISP Parameter in detail? What are the default DISP Parameters?
A: DISP = ( Status , normal_d , abnormal_d )
Status--- New , Old , Mod  To specify whether the dataset is existing or the new.
Normal Disposition --- Delete, Keep  Action to be taken when succesful
Abnormal Disposition --- Delete , keep  Action to be taken when not succesful
Default (New , delete, Delete ).
Default (Old, keep, keep)
Default (Mod, keep, keep)


12. What is the difference between the Referbacks & Overriding parameters? How are they coded in a JCL?
A:

13. How do you pass parameters to a program coded in an EXEC statement?
A: By specifying Parm =

14. In how many ways can you create a VSAM dataset? Thru JCL How will you create a VSAM dataset ? Can you write a JCL for this?
A: Using DD statement.


15. What is a GDG? How will you create a GDG? Can a GDG be used for Partitioned Datasets?
A: Generation Dataset Group , Chronological relation between physical datasets.
Define GDG( NAME )
Limit(nnnn)
Empty/Noempty
Scratch/ NoScratch



16. What are the parameters used in creating a GDG? Explain in detail? Can you alter
the parameters for the existing GDG? If yes, How?
A: Define GDG( NAME )
Limit(nnnn)  No. Of generations to be created
Empty/Noempty  When the limit reaches what action has to be taken.
Empty  Empties the datatset when the limit is reached.
NoEmpty  When the level is reached only the oldest generation will be
deleted.
Scratch/ NoScratch  When the dataset is deleted Scratch will delete the
Generation completely. NoScratch will uncatalog the dataset.
GDG parameters can be altered.

17. What for the Model dataset used for a GDG? How much space will you give to the Model Dataset?
A:

18. How many Maximum generations can be created for a GDG? How will you create a Generation dataset?
A: 255. Using DD statement
DD dsn= xxx.yyyyyy. zzzzzz. G000001.v000001(+1).

19. What is the E37 error? How will you resolve it with out losing a single byte of data? (Hint: This Error comes when you save the dataset after editing it)
A: Space Error.

20. What is SOC7 abend? How do you resolve it?
A: Data movement error . When an alpha numeric item is moved to numeric item field.

JCL

Describe the required JCL statements in a job.
JOB statement; EXEC statement; DD card

What are the functions of the JOB card ?
The JOB statement identifies characteristics about the job such as job name, accounting information, restart instructions, job class, holds a job for later execution and set time limits.

What are the functions of the EXEC statement ?
The EXEC statement identifies the beginning of each job step; states the program to be executed; the name of the job step; gives conditions for bypassing or executing a job step; sets cpu time limits and passes parameters to to the program

What are the functions of the DD statement ?
The DD statement assigns a DD name; identifies a dataset name; may specify the volume the dataset is stored on; the format of the records in the data set; whether a data set is old or new and the record length and block size of newly created data sets.

When would you use a catalogued PROC ?
A PROC is used when the same set of JCL statements are used repeatedly with little or no change.

Describe the three values of the DISP (disposition)parameter for an existing dataset.
SHR means the dataset is shared by multiple jobs.
OLD means only one job can access the dataset.
MOD means data written to the dataset is appended.

What does the second and third subparameter of the DISP parameter mean ?
The second would be what to do with the dataset after the step normally ends while
the third would be what to do with the dataset after the step abends.

If the DISP parameter is left out, what would be the default ?
The default DISP would be (NEW,CATLG,CATLG).

If the third subparameter of the DISP parameter is left out, what would be the default ?
It would default to the second subparameter.

How do you start a job at a specific job step rather then at the beginning ?
Indicate RESTART on the JOB statement and the name of the job step to begin execution.

What if the step you want to restart is inside a PROC ?
Code RESTART=Jobstepname.Procstepname, wherein the Jobstepname is found within the job and EXECs the procedure and the Procstepname is found within the PROC.

What are the 4 keywords used with DCB ?
DCB stands for data control block. The keywords associated with the DCB parameter are LRECL(record length), RECFM(record format), BLKSIZE(block size) and DSORG(sequential or partioned data set).

What is the purpose of the PARM keyword in the EXEC statement ?
The PARM keyword passes data to the executing program

What is the TIME keyword and where is it used?
Indicates the maximum CPU time allocated for a particular job or job step. If TIME is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.

Explain the SYSOUT parameter.
Specifies the output device you want your output written to.

How do you concatenate datasets ?
Specify more than one dataset on the same DD statement like so:
//ddname DD dsn=dataset1,disp=shr
// DD dsn=dataset2,disp=shr
// DD dsn=dataset3,disp=shr

Given the example shown below:
//ddname DD dsn=dataset1,disp=shr
// DD dummy
// DD dsn=dataset3,disp=shr
What happens here ?
dataset3 is skipped as a result of coding the DUMMY parameter in the middle.

How do you assign default and specific values to a symbolic parameter ?
Default values are specified by assigning values in the procedure on the PROC statement. Specific values are assigned on the EXEC statement of the calling procedure.

When should you use a symbolic parameter ?
When a parameter in a procedure varies each time the procedure is called.

If you want to include run instructions/documentation in your job, what do you do ?
Enter the instructions as comments by preferencing them with //*

What does RLSE mean on the following: SPACE=(TRK,(25,25),RLSE) ?
The system will release any unused tracks after allocating the requested space.

Explain what will happen to a dataset with this DISP parameter upon completion of the job: DISP=(NEW,CATLG,DELETE)?
If the job runs successfully, the dataset will be created and cataloged. If the job abends, the dataset will be deleted.

What are the DD names of the DD statements used to specify where the load modules are stored for a job step ?
//STEPLIB DD DSN=... right after the EXEC PGM= card
For the entire job ?
//JOBLIB DD DSN=... right after the JOB card
If both are coded, which one takes effect ?
The load module found in the load library coded on the STEPLIB statement.

How do you suppress reading or writing a dataset without making program changes ?
By coding the DUMMY parameter on the DD statement of the dataset.

What utility do you use to copy a sequential dataset?
IEBGENER or IDCAMS with the REPRO option. "SORT" will also do the job with the exception of a sorted output dataset.

What utility do you use to delete or catalog a dataset ?
IEFBR14
Please elaborate.
IEFBR14 does nothing so the subparameter values of the DISP parameter on the DD statement are used to delete or catalog the dataset.

Describe a GDG generation data group.
A group of datasets with the same base name that have chronological occurrences called generations. Each generation is referenced by it's base dataset name followed by the generation number. Example: SYS3.MASTER.G0101V00 and SYS3.MASTER.G0102V00 where SYS3.MASTER is the base name followed by a chronological generation number.

What is the difference between an absolute and a relative generation ?
GDG datasets can be referred to by using its absolute or relative generation number.
Absolute generation or G0000V00 number (by its naming format) would give you the complete GDG dataset name.
Relative generation is exactly what it says (0-current,-1-previous,+1-next one to be created). After a job completes or abends, the absolute generation numbers would be resolved.

How can you prevent repeatedly changing the generation numbers in a job that executes daily? It reads the current and previous generations and creates a new generation of SYS3.MASTER ?
By referencing them using their relative generation numbers:
Name the current generation: SYS3.MASTER(0)
Name the previous generation: SYS3.MASTER(-1)
Name the newly created generation: SYS3.MASTER(+1)

If a job abends and a (+1) generation that was created previously will be used in the next subsequent step(s), what do you do before you restart ?
Change your JCL to refer to this as a (0) generation because it is now the current generation.
This is assuming that the (+1) generation created was the most current and there was no (+2) created etc.

If you defined a GDG with a limit of 90, what happens when the 91st generation is created ?
Generation one rolls off and is automatically deleted.

Identify the 2 uses of the TYPRUN parameter on the JOB statement ?
TYPRUN=HOLD will submit the job in the queue but suspend it's execution until it is released.
TYPRUN=SCAN allows the JCL in the job to be checked for syntax errors without executing the job.

What is a procedure ?
A JCL stream called by the executing job by specifying it's name on the EXEC statement.

What is the difference between a catalogued and an instream procedure ?
A catalogued PROC name would be in the EXEC statement, but the actual procedure resides in a different dataset library. This gives added flexibility as far as being able to make changes to just the PROC without touching the job since this PROC can be used in more than one job.
An instream PROC would be found inside the job itself preceded by the word, PROC, and ends with the word, PEND (the EXEC statement should be after the PEND).

How do you specify where catalogued procedures reside ?
By using the PROCLIB statement which specifies what libraries to search before executing the PROC (the new way of doing this is by using the JCLLIB ORDER=(lib1,lib2,...) statement).

Can you have instream data inside a catalogued procedure ? How do you resolve this ?
No. You can read instream data by doing an override to the DDname inside the PROC. This override would be coded inside the job itself after the EXEC PROCname statement:
//DDname DD * followed by instream data in subsequent lines.

What utility would you use to print a sequential dataset ?
IEBGENER with the output directed to SYSOUT=*. This assumes that the MSGCLASS parameter on the JOB statement is pointing to a proper output class.

What is a S322 abend ?
The executing job has run out of time.

What is the difference between a S222 and S322 abend code ?
A S222 abend code means the job was cancelled by the operator. A S322 means that the job needs more time to run.

How do you fix a SB37 abend ?
Increase the primary and/or secondary space specified on the SPACE parameter of the DD statement for the dataset specified in the error message.

What is a S013 abend code ?
DCB conflict; often LRECL specified does not match the record length of the file in the COBOL program

What is a S806 abend code ? How do you resolve this ?
Program module specified in the EXEC PGM= statement could not be found. First, check if a STEPLIB is coded and all concatenated libraries for this program. Second, check the JOBLIB statement and all concatenated libraries for this program. Last, check the system linklist if the program is there.

How do you resolve a S80A or S804 abend ?
Increase the REGION specified on the JOB and/or EXEC statement(s).

What is a S913 abend code ? How do you resolve this ?
You lack the authority to read or update the dataset. Talk to the security administrator so your ID has the necessary authority.

What is the difference between a system and a user abend ?
A system abend is issued by the operating system while a user abend is issued by an application program and starts with the letter, U, followed by a number. Usually an application program displays a message before issuing a user abend to help the on-call programmer diagnose the problem.

How do you change the return code ? How is this different from a user abend ?
In the COBOL program, move a 4-digit number to RETURN-CODE before issuing the GOBACK statement. This is different from a user abend because it does not abend, but issues a non-zero return code which can be used to affect subsequent steps.

What parameter do you use to execute the next job step even though the preceding job step was unsuccessful ?
COND=EVEN coded in subsequent steps.

What parameter do you use to execute the next job step only if the preceding job step was unsuccessful ?
COND=ONLY coded in subsequent steps.

What parameter do you use to execute a job step only if the preceding job step has zero return codes ?
COND=(0,NE) coded in subsequent steps.

What if the highest permissible condition code is 4, how do you code this ?
COND=(4,LE) coded in subsequent steps.

Q1:How many levels of nesting is allowed in PROCs?
Ans-1. 15

Q2:If the "DISP=" keyword is not coded for an existing dataset, what default values will be used for "DISP="?
Ans-2. If the "DISP=" keyword is not coded ,then the DEFAULT Values are : DISP=(NEW,DELETE,DELETE)

Q3:If the "DISP=" keyword is not coded for a new dataset, what default values will be used for "DISP="?
Ans-3. If the "DISP=" keyword is not coded ,then the DEFAULT Values are : DISP=(NEW,DELETE,DELETE)

Q4:What does COND=ONLY mean?
Ans-4. - It means that job step will be executed only if previous steps abnormally terminate

Q5:What does COND=EVEN mean
Ans-5. It means that job step will be executed even if one of the previous steps abnormally terminates



JCL QUESTIONS


1. Question: HOW MANY POSITONAL PARAMETERS ARE THERE IN JOBSTATEMENT?
Answer: THER ARE TWO POSITION PARAMETERS IN JOB STATEMENT.

2. Question: What are three parameters you can specify on Job statement as well as on exec stmt ?
Answer: Time , Region and Cond parameters

3. Question: How can you trap abends in the JCL?
Answer: Use IF ABEND statement in the JCL.

4. Question: How do you restart a step in JCL?
Answer: Use RESTART=step name.

5. Question: how do you pass parameters to the program as the job is being executed ?
Answer: by using 'parm' parameter in exec statement. the value mentioned here should be declared in linkage section in the program and process thru procedure division. this technique is very useful when you do not know the parameters at the time of coding the programs.

6. Question: Why do you use a control card?
Answer: A control card can be a member of a pds or a sequential data set and is used for storing the date fields, Definitions of VSAM files....etc. You use control card because you cannot use a in-stream procedure in a procedure. Generally you will be calling a Proc from your JCL and you cannot code in-stream procedure in the Proc and so you will point to the data set which is called control card.

7. Question: How do you submit JCL via a COBOL program? For the above question the solution is as follows..
Answer: In your JCL define as
//JOBA JOB 1111,JOB1
//STEP01 EXEC PGM=PROG1
//ddname DD SYSOUT=(*,INTRDR)....and your COBOL(PROG1) should look like this SELECT JCL-FILE ASSIGN TO ddname. Open this file and write the JCL statements into this file.Example. MOVE '//TESTJOB JOB 1111,VISVEISH' TO JCL-REC.MOVE '//STEP01 EXEC PGM=IEFBR14' TO JCL-REC. and close this file. Then TESTJOB will be submitted.

8. Question: How do you submit a JCL under CICS environment ?
Answer: pass all the JCL codes to a COBOL variable(should be declare using OCCURS class) and the write the line one by one to the spool using CICS commands like SPOOLClose SPOOLOpen SPOOLWrite . For more help refer CECI of CICS or CICS manual

9. Question: What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class
Answer: TIME=1440



10. Question: Definition of COND p-r in JCL and a correction to a previously posted question
Answer: COND is a condition parameter, consists of 2 sub-parameters, 1st - return code from the previous step, 2nd - condition. If COND is true, the step on which COND is coded will be BYPASSED.

11. Question: Q) WHAT IS MEANT BY S07C AND S0C30 SYSTEM ABEND CODES
Answer: A) S0C7 - Data exception error - you will get it whenever you are trying to move the low values or spaces into the numeric field, or compare the numeric fields with low values, or try to do some arithmetic operations on the low values. To avoid this you have to always initialize the numeric fields otherwise they will contain the low values.S0C 30 - I have never heard of it, let you know if I come across it.

12. Question: How to pass the temp data set form one JOB step to another?
Answer: By specifying the DISP as PASS for the temp data set

13. Question: What is a COND parameter in JCL?
Answer: COND means condition parameter. It is compared with system return code of previous step.
//step1 exec pgm=abcd
//step2 exec pgm=xyz, cond=(4,lt)step2 will be executed when system return code of step1 is less than 4.

14. Question: WRITE A JCL TO EXECUTE A JOB BY 7 A.M ON JAN 20,1986 ?
Answer: THE code IS : //*MAIN DEADLINE=(0700,B,012086)

15. Question: HOW MANY TYPES OF LIBRARIES ARE THERE IN JCL ?
Answer: LIBRARIES ARE OF THREE TYPES.
1.SYTEM LIBRARIES: SUCH AS SYS1.LINKLIB
2.PRIVATE LIBRARIES: SPECIFIED IN A JOBLIB OR STEPLIB DD STATEMENTS.
3.TEMPORARY LIBRARIES:CREATED IN A PREVIOUS STEP OF THE JOB.

16. Question: WHAT U MEAN BY INCLUDE STATEMENT IN JCL ?
Answer: AN INCLUDE STATEMENT IDENTIFIES A MEMBER PF A PDS OR PDSE THAT CONTAINS.THIS SET OF JCL STATEMENTS IS CALLED AN INCLUDE GROUP.THE SYSTEM REPLACES THE INCLUDE STATEMENT WITH THE STATEMENTS IN THE INCLUDE GROUP.

17. Question: THE MAXIMUM NUMBER OF IN-STREAM PROCEDURE YOU CAN CODE IN ANY JCL IS ?
Answer: 15.

18. Question: What you mean by skeleton JCL?
Answer: JCL which changes during run time i.e. the values for the JCL such as pg. name ,DD name will change .i.e. same JCL can be used for various job, equivalent to dynamic SQL...



19. Question: what is JCL
Answer: it is interface between operating system(mvs) & application program. when 2 related programs are combined together on control statements is called job control language


20. Question: What is the Max blocksize for a Tape file?
Answer: It is 32,760.Based on that we can calculate efficient number of Records in a Block



21. Question: What are the basic JCL Statements for a Job?
Answer: 1.JOB : Identifies a job and supplies accounting inf. 2.EXEC : Identifies a job step by indicating the name of the program to be executed. 3.DD : Identifies a data set to be allocated for the job step 4.Delimiter (/*): Marks the end of an in-stream data set 5.Null(//):Marks the end of a job 6.Comments(//*): Provides Comments 7.PROC : Marks the beginning of a procedure 8.PEND : Marks the end of a procedure 9.OUTPUT: Supplies options for SYSOUT processing.

22. Question: What does the statements: typrun=scan and typrun=hold do in a JCL statement
Answer: typrun=scan checks the JCL for errors, typrun=hold holds the job until further notice.

23. Question: What is QSAM error usually when it is occurs?
Answer: Usually it is occurs at the time of job submission.

24. Question: what is the purpose of include statement in a JCL?
Answer: It is used as an alternative for steplib. When we specify the data set name in include ,it will search in all the data sets specified in the include data set.

25. Question: IS IT POSSIBLE TO KNOW THE REMAINING FREE SPACE IN AN CONTROL INTERVAL/CONTROL AREA ONCE AN INSERTION HAS BEEN MADE.
Answer: NOT POSSIBLE

26. Question: what does soc04 error mean?
Answer: this error is faced when we execute the COBOL program, the main reason for this error is that a variable is defined with less characters and we are trying to move data which is larger than the actual storage space.

27. Question: In which table PLAN is registered in ?
Answer: RCT

28. Question: GDG?
Answer: GDG - group of data set that are logically or chronologically related, referred by name and a relative generation number - an integer which identifies the generation of a data set and is coded in parentheses after data set name. Absolute GDG name - GxxxxVyy, where xxxx-absolute gen.number, yy-version number. Can be sequential, direct, partitioned. (VSAM - no). Must always be cataloged. Advantage - all data sets have the same name and system keeps track of adding new and retaining previous generations and deleting oldest successive generation. To create a GDG we create a GDG index in the system catalog with IDCAMS utility and then a model (prototype, DSCB) on the same volume to supply DCB information. Empty - when limit is reached all members are removed from the index, otherwise-only oldest. Scratch-removed members are uncataloged & deleted, otherwise - removed & uncataloged, but remain in the system (not members of GDG any more). GDG number is updated at the end of the job. If number is not specified all generations will be processed from the beginning

29. Question: what do you mean By spooling? Expand SPOOL?
Answer: This is managed by JES. This is used for Queuing the Outputs that are intended for Printing and are first stored in SPOOLDASD. This can be managed Using

30. Question: How many Instream-Procedures(procs) can be Coded in a single Job?
Answer: The Answer is: 15

31. Question: FOR HOW LONG A JOB CAN BE EXECUTED CONTINUEOUSLY IN A MAINFRAME
Answer: 248 DAYS

32. Question: MAX. NO OF DD STATEMENTS IN A JOB
Answer: 3273

33. Question: HOW MUCH SPACE OS ALLOCATES WHEN YOU CREATE A PS OR PDS?
Answer: 56 KB

34. Question: MIN NO OF DATASET NAMES(PDS) IN ONE DIRECTORY BLOCK?
Answer: SIX

35. Question: THE MAXIMUM NUMBER OF STEPS IN A JOB?
Answer: 255

36. Question: How much is memory space involved, when we code BLOCKSIZE,TRK & CYL
Answer: One block constitutes 32KB of formatted memory/ 42KB of Unformatted memory,6 blocks makes one Track & 15 Tracks makes one cylinder.

37. Question: What is a Dummy Utility and what it does ?
Answer: IEFBR14 is a Dummy utility and it is used for the sake of EXEC PGM= .... statement in JCL[when used it wouldn't perform any task]. e.g. While Allocating a data set you don't have to run any utility [this could be done by giving disp=new in DD statement]. But for a PGM name must be given in EXEC statement, it is used.

38. Question: What 3 guidelines do we have to follow when concatenating DD statements?
Answer: 1. Data sets must be of the same type (disk or tape)
2. All data sets must have the same logical record length
3 The data set with the largest blocksize must be listed first.



39. Question: On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned data set?
Answer: SPACE=(n,m) for a sequential file, SPACE=(n,m,p) for a PDS where n, m, and p are numbers. The p designates how many directory blocks to allocate.



40. Question: What is the difference between IEBGENER, IEBCOPY and REPRO in IDCAMS utility?
Answer: IEBGENER -- This is a data set utility for copying sequential data sets which produces a PDS or a member from a sequential data set. IEBCOPY -- This is a data set utility for copying one PDS to another or to merge PDSs. REPRO -- This is for copying sequential data sets. More or less same as the IEBGENER.RAVI



41. Question: How do you submit JCL via a COBOL program?
Answer: Use a file //dd1 DD sysout=(*,intrdr)write your JCL to this file. Pl some on try this out.

42. Question: How to execute a set of JCL statements from a COBOL program
Answer: Using EXEC CICS SPOOL WRITE(VAR-name) END-EXEC command. var-name is a COBOL host structure containing JCL statements.

43. Question: What is the difference between static call & Dynamic call
Answer: In the case of Static call, the called program is a stand alone program, it is an executable program . During run time we can call it in our called program. As about Dynamic call , the called program is not an executable program it can executed thru the called program

44. Question: What is the difference between catalog procedure and In-Stream procedure?
Answer: In Stream procedures are set of JCL statements written between JOB and EXEC statements, start with PROC and end with PEND statement. Mainly used to test catalog procedures. Cataloged procedure is cataloged on the procedure library and is called by specifying the procedure name on the EXEC statement.

45. Question: How many parameters are there to a DISP statement and what are their uses.
Answer: There are three(3) parameters. Parameter 1: current data set disposition(new, shr, old, mod) Parameter 2: normal close action for data set (catlg, keep, delete) Parameter 3:abend action for data set (catlg, keep, delete).

46. Question: What is the error code SOC01 indicate ?
Answer: Operation exception error For eg a data set open error

47. Question: What is a procedure?
Answer: A set of pre-coded JCL that can be modified through the use of parameters or override cards. Note: Procedures can be catalogued or in-stream.

48. Question: What does SYSIN * indicate?
Answer: In-stream data follows this card and is terminated when followed by a card containing // or /* in columns 1 and 2.


49. Question: What are three major types of JCL statements? What are their functions?
Answer: JOB, EXEC, DD. JOB - indicates start of job-stream to the operating system and through parms coded on it, certain details about the job (time, region, message level, job accounting data). EXEC - indicates the start of execution of a particular job step, be that step a program or a proc. DD - is a data definition, which is used to describe the attributes of a data set (name, unit, type, space, disposition).

50. Question: What is the difference between specifying DISP=OLD and DISP=SHR for a data set?
Answer: OLD specifies exclusive use of a data set, SHR allows multiple jobs to concurrently access the data set Note: When updating a data set, you would normally use OLD.


 If JCL using RACF file, we need to give user id and password in JOB statement.

//JOB1 JOB (M060, CCCC),'XXXXXXXXXXX',
// MSGCLASS=E, REGION=3000K, NOTIFY=&SYSUID,
// USER=XX1111, PASSWORD=XXXXXXXXX
// JCLLIB ORDER=XXXX.OFFSHORE.JCL.FEB06
//STEP1 EXEC PRC
//STEP2.DDNAME DD DSN=XX1111.INSERTS.XXXXXXXX.FEB5
// DISP=SHR

Utilities

UTILITIES :

IEBCOMPR
Compare records in sequential or partitioned data sets, or PDSEs

IEBCOPY
Copy, compress, or merge partitioned data sets or PDSEs; add RLD count information to load modules; select or exclude specified members in a copy operation; rename or replace selected members of partitioned data sets or PDSEs.

IEBDG
Create a test data set consisting of patterned data

IEBEDIT
Selectively copy job steps and their associated JOB statements.

IEBGENER
Copy records from a sequential data set or convert a data set from sequential organization to partitioned organization.

IEBIMAGE
Modify, print, or link modules for use with the IBM 3800 Printing Subsystem, the IBM 3262 Model 5, or the 4248 printer.

IEBISAM
Unload, load, copy, or print an ISAM data set.

IEBPTPCH
Print or punch records in a sequential or partitioned data set.

IEFBR14

IEFBR14 is not a utility program, it is a two-line program that clears register 15, thus passing a return code of 0, and then branches to the address in register 14, which returns control to the system. So, in other words this program is dummy program.

IEBUPDTE
Incorporate changes to sequential or partitioned data sets, or PDSEs.

IEHINIT
Write standard labels on tape

IEHLIST
List data sets

IEHMOVE
Move or copy collections of data.

IEHPROGM
Build and maintain system control data.

IFHSTATR
Select, format, and write information about tape errors from the IFASMFDP tape.

VSAM FAQ's

VSAM

1. What is VSAM

a. Virtual System Access Method
b. Vertical System Access Method
c. Virtual System Access Method
d. Virtual System Architecture Method

2. Which Utility program is used to develop the AMS commands

a. IDCAMS
b. IEBCOPY
c. IEHPROGM
d. IEBPTPCH

3. How many extents are possible while creating a VSAM dataset

a. 123
b. 16
c. 14
d. 15

4. Disadvantages of VSAM Cluster

a. Faster Access
b. Additional Storage
c. Reorganisation
d. Device Independent

5. In which dataset embedded free space is available between records

a. ESDS
b. KSDS
c. RRDS
d. LDS

6. KSDS base cluster is a combination of

a. DATA & INDEX Compnent
b. DATA & AIX Cluster
c. INDEX & AIX Cluster
d. All of the above

7. KSDS stands for

a. Keyed Sequential Data Set
b. Keyed Sequence Data Set
c. Key Sequence Data Set
d. Keyed Sequential Data Set

8. KSDS record will be retrieved randomly using

a. Record Key
b. RRN
c. Sequence
d. Numbering

9. What does the File Status 10 denote

a. End of File
b. Wrong values
c.


10. Which command is used to read the contents of a dataset

a. Print
b. Value
c. List Cat
d. Repro

11. Which dataset is having Fixed Length slot

a. KSDS
b. RRDS
c. LDS
d. ESDS


12. Which Data is very similar to ESDS

a. KSDS
b. RRDS
c. LDS
d. ESDS

13. Which commands is used to load records in VSAM Dataset

a. Verify
b. Alter
c. Jobcat
d. Repro

14. A control Area should have a minimum of

a. 5 C.I
b. 4 C.I
c. 2 C.I
d. 3 C.I

15. What is the Maximum size of a Control Interval

a. 512 Bytes
b. 1024Bytes
c. 32 kb
d. 56 kb


16. Free Space can exist between

a. Contorl Intervals
b. Within a Control Area
c. Entire Control Area
d. All of the above


17. Control Area is a group of

a. Records
b.Blocks
c. C.I
d. Files

18. Auto - Reorganisation is possible in VSAM dataset [True / False]


19. Duplicate alternate key in Vsam is given thru which File Status

a. 02
b. 04
c. 10
d. 22

20. Duplicate Record key in Vsam is given thru which File Status

a. 02
b. 04
c. 10
d. 22

21. In which Data set can we have an AIX

a. KSDS
b. ESDS
c. RRDS
d. Both a & b

22. CI and CA Splits occurs in

a. KSDS
b. ESDS
c. RRDS
d. LDS

23. How many AIX will be there for a Base Cluster

a. 253
b. 254
c. 255
d. 252

24. Minimum Size of a C.A

a. 2 Track
b. 3 Track
c. 1 Track
d. 7 Track


25. Maximum Size of a C.A

a. 2 Cylinder
b. 3 Cylinder
c. 1 Cylinder
d. 7 Cylinder

26. In ESDS which operation is not possible

a. Read
b. Write
c. Rewrite
d. Delete

27. IDCAMS utility is used for

a. Define VSAM
b. Load Records into Vsam
c. Both a and b
d. None of the above

28. A RDF is how many bytes long

a. 4 Bytes
b. 5 bytes
c. 3 Bytes
d. 7 Bytes

29. Minimum Size of a Control Interval

a. 1024 Bytes
b. 2 Tracks
c. 512 Bytes
d. 256 Bytes

30. A CIDF is how many bytes long

a. 4 Bytes
b. 5 bytes
c. 3 Bytes
d. 7 Bytes

31. Which function updates the AIX for all insertions on the Base Cluster

a. Up Date
b. Up Grade
c. Define
d. Alter

32. AIX is a special type of

a. KSDS
b. ESDS
c. RRDS
d. LDS


33. Which command is used to load records in AIX

a. BLDINDEX
b. REPRO
c. ALTER
d. PATH

34. Which command is used to change the attributes of the VSAM existing

a. ALTER
b. RENAME
c. CHANGE
d. MODIFY

35. Which parameter is used to Delete the entry of a GDG

a. Delete with Force
b. Delete
c. Drop
d. Erase

36. ESDS stands for

a. Entry Sequence Data set
b. Entry Sequential Data set
c. Entry Sequenced Data set
d. Entity Seqquenced Data set

37. Which command makes a Back up of Dataset

a. Import
b. Export
c. Repro
d. Transfer

38. Which one is a MODAL Command

a. IF THEN ELSE
b. WHEN
c. WHILE
d. DO WHILE

39. For which value of Max CC execution will be Abnormally terminated

a. 0
b. 4
c. 8
d. 16

40. Which commands controls execution of statements

a. MODAL
b. EXPORT
c. IMPORT
d. ALTER

41. ALL VSAM datasets resides in the DASD [True / False]


42. An LDS consists of no C.I [True / False]

43. Records from a ESDS can be accessed either sequentially or by RBA [True / False]

44. The alternate record key is not unique for

a. KSDS
b. ESDS
c. AIX
d. LDS

45. Which parameter is used to specify RRDS

a. Indexed
b. Non-Indexed
c. Numbered
d. Linear


46. In which cluster type the records are added to the end of the position

a. KSDS
b. ESDS
c. RRDS
d. LDS

47. Which command is used to make a write protective dataset

a. ALTER
b. PRINT
c. VERIFY
d. ERASE

48. What is the default option for Shareoptions

a. (2,3)
b. (4,5)
c. (3,4)
d. (6,7)


49. Which mode will be helpful for appending records in ESDS

a. Output
b. Extend
c. I-O Mode
d. Input

50. What is the default character in which VSAM datasets will be printed

a. Char
b. Dump
c. Hex
d. None of the above

JCL FAQ's

1. What is the expansion of JCl?

a. Job Communication Language
b. Job Control Language
c. Job Condition Language
d. Job Control Linkage

2. What are all the statements in JCL?

a. JOB Statement, EXEC Statement, DD Statement
b. JOB Statement, EXEC Statement, DL Statement
c. Statement, EXEC Statement, DD Statement

3. Jcl is an interface between the operating System and the communication system - [True / False]

4. Space allocated when the dataset is newly created is called as

a. Primary allocation
b. Secondary Allocation
c. Directory Blocks
d. Extents

5. How many extents are possible for a sequential file

a. 16
b. 123
c. 32
d. 64

6. command that copies the first 100 records in a a dataset?

a. REPRO
b. ALTER
c. COPY
d. IEBGENER

7. What do u do if u do not want to keep all the space occupied to the allocated dataset

a. CONTIG
b. MXIG
c. ROUND
d. RLSE

8. The command that changes the name of the dataset

a. ALTER
b. RENAME
c. EDIT
d. CHANGE

9. What is the maximum no of steps present in a JOB

a. 253
b. 234
c. 155
d. 255

10. What is the maximum allowable DD Statement in a JOB STEP

a. 3272
b. 3273
c. 3274
c. 2374

11. What is the maximum character of a Dataset

a. 45
b.40
c. 84
d. 44

12. What is the maximum allowable no of characters in a Group of a Dataset
a. 8.
b. 5.
c. 6.
d. 7.

13. What is the maximum allowable characters in an User id

a. 5
b. 6
c. 7
d. 8

14. Which Jcl parameter is used to hold a JOB for later execution in the spool region

a. TYPERUN
b. MSGCLASS
c. PRTY
d. TYPRUN.

15. Keyword parameters cannot precede positional parameters [True / False]

16. Default parameter for MSGLEVEL is

a. (1,0)
b. (2,0)
c. (1,1)
d. (0,0)

17. The following JOB Names are valid or not valid

a. //123ABCD
b. // ABC1244
c. //BGH@FGA
d. //GHUIJ23RI

18. The default time parameter for taking the maximum CPU resource is

a. Time = 1444
b. Time = 1440
c. Time = (24, 30)
d. Time = (0, 0)

19. What is SPOOL

a. Simulated Peripheral Online for Operations.
b. Simultaneous Peripheral Online for Operations.
c. Systems Peripheral Operations for Online.
d. Simultaneous Peripheral Operations for Online.

20. What is the codable format for the job to take the total System region for the JOB execution

a. Region = 1K
b. Region = 0K
c. Region = 1M
d. Region = 2040M

21. Which function is used to send values to an Application Program while executing

a. PERFORM
b. SYSIN
c. PARM
d. CONTIG

22. What is the Format for restarting a JOB from a specific step

a. RESTART = STEP NAME
b. RESTART = JOB NAME
c. RESTART = DD NAME
d. RESTART = PROC NAME

23. Which command is used to check the syntax error of a JCL

a. TYPRUN = HOLD
b. TYPRUN = SCAN
c. TYPRUN = COPY
d. TYPRUN = CHECK

24. A Return code of 8 indicates

a. Implies succesful execution of JOB Steps
b. Implies warning messages
c. Implies Serious error
d. Implies Fatal Error

25. Format of Time coded

a. Time = (Min - sec)
b. Time = (Hour, Min)
c. Time = (Sec)
d. Time = ( , Sec)

26. How will u define a Temporary Datasets

a. DSN = $$X.Y.Z
b. DSNAME = &&X.Y.Z
c. DSN = ##X.Y.Z
d. None of the Above

27. Which one of the following is a Keyword Parameter

a. *
b. Data
c. Disp
d. Dummy

28. Chronological search of the library path for a specified PGM in the EXEC Statement is

a. STEPLIB, JOBLIB, JCLLIB
b. JOBLIB, STEPLIB, JCLLIB
c. STEPLIB, JCLLIB, JOBLIB
D. None of the Above

29. Format of the DISP to be coded is

a. DISP = (Status, Normal Dispositon, Abnormal Diposition).
b. DISP = (Status, Abnormal Disposition, Normal Disposition).
c. DISP = (Status, Normal Disposition).
d. None of the Above.

30. Which of the below illustrates the default value if the DISP parameter is not coded

a. DISP = (Old, Catlg, Keep)
b. DISP = (New, Keep, Keep)
c. DISP = (New, Delete, Delete)
d. DISP = (New, Catlg, Delete)

31. Which of the following Sub-Parameters not used in Abnormal Disposition field

a. Delete
b. Keep
c. Uncatlg
d. Pass
e. Catlg

32. To append a record in which mode should the dataset be opened

a. SHR.
b. OLD.
c. MOD.
d. NEW.

33. Which subparameter is used to refer the Hardware device specified in a prior DD statement

a. Affinity
b. Refer Back
c. Defer
d. SER

34. Which subparameter is used to refer the volume specified in a prior DD statement

a. Affinity
b. Refer Back
c. Defer
d. SER

35. How many tracks together makes one cylinder

a. 16
b. 15
c. 14
d. 13

36. One track is how many Kilobytes

a. 54
b. 55
c. 56
d. 53

37. Maximum No of members in a Directory Block

a. 5
b. 6
c. 7
d. 4

38. Which one of the following is correct as a PDS

a. Space = (TRK, (4,5))
b. Space = (CYL (4,5,1))
c. Space = (TRK, (4,5,1))
d. Space = (TRK, (4,5,0))

39. What is VTOC

a. Volume Tentative of Contents
b. Virtual Table of Contents
c. Volume Transactions of Comments
d. Volume Table of Contents

40. What is the function of ROUND sub parameter in the SPACE Parameter

a. Request for Contiguous space
b. Request of release of space previously allocated
c. Request for space in Blocks
d. Request for entire cylinder for storage dataset

41. Which DISP parameter specifies exclusive use of Dataset

a. MOD
b. OLD
c. SHR
d. KEEP

42. What is the Maximum character length allowable in the PARM Parameter

a. 110
b. 50
c. 101
d. 100


43. What is the allowable format for the NOTIFY parameter

a. NOTIFY = & SYSUID
b. NOTIFY = User-id
c. a & b
d. Only a.

44. What is the maximum PRTY allowable in JES3

a. 14
b. 15
c. 13
d. 16

45. What is the Minimum Prty allowable in JES3

a. 0
b. 1
c. 2
d. 14

46. What is SDSF

a. Screen Definition Spool Facility
b. Spool Definition Screen Facility
c. System Dump Storage Facility
d. Search Definition Spool Facility

47. How to change the Input delimiter of a DD Statement of a SYSIN Card

a. DATA, DLM = '##'
b. DATA, DLM=##
c. *
d. DUMMY

48. Which utiltiy is used for Renaming a Dataset

a. IEBGENER
b. IEFBR14
c.IEBCOPY
d. IEHPROGM

49. What is DCB

a. Data Control Block
b. Data Command Block
c.Data Communication Block
d. Data Comment Block

50. Which is the Dummy Utility

a. IEFBR14
b. IEBGENER
c. IEHPROGM
d. IEBCOPY


51. What is the Maximum Return Code after the execution of a Step

a. 1024
b. 256
c. 4095
d. 20

52. What is the DS ORG for a P.D.S

a. P.O.
b. P.S.
c. P.U.
d. P.D.S.

53. Which of the following is not a DCB Parameter

a. RECFM
b. BlKSIZE
c. BUFNO
d. RLSE

54. What is the LRECL of Variable length record whose max length is 80

a. (80 + 2)
b. (80 + 4)
c. Unchanged
d. (80 + 8)

55. What means when coded with SYSOUT = *

a. It denotes to the device mentioned in MSG CLASS
b. It denotes to the spool region
c. It denotes to the Hardware device like printer
d. It denotes to the Logical I/O device

56. RECFM cannot be

a. F
b. FB
c. V
d. VB
e. C

57. If a P.D.S is defined with 1 D.B how much members can be created

a. 6
b. 5
c. a & b
d. None of the above

58. Expansion of P.D.S

a. Partitioned Data Sets
b. Physical Data sets
c. Private Data sets
d. Partitioned Data systems

59. RLSE parameter is used to free up the space alloacted to any dataset in the P.A [True / False]

60. How many extents are possible for a VSAM dataset as a secondary allocation

a. 16
b.15
c. 123
d. 6

61. DASD is expanded as

a. Dynamic Active Storage Device
b. Direct Active Storage Device
c. Data Access Storage Disk
d. Direct Access Storage Device

62. What are the procs allowed in JCL

a. Cataloged
b. In-stream
c. a & b
d. Only a

6.3. What is ISPF

a. Information System Product Facility
b. Integrated System Protocol Facility
c. Interactive System Productivity Facility
d. Inter Sytem Productivity Facility

64. What is TSO

a. Time Sharing Operation.
b. Time Sharing Option.
c. Time system Organisation.
d. Time Schedule Operation.

65. How many instream proc should be coded in a single JOB

a. 15
b. 16
c. 14
d. 13

66. Can u code a instream data in a Proc [Yes / No]

67. What is the delimiter for an Instream Proc

a. END
b. $$
c. PEND
d. NULL

68. What are the not allowable statements in a Cataloged Proc

a. JOB Statement & Null Statement
b. EXEC Statement & DD Statement
c. DD Statement & Steplib DD Statement
d. Exec Statement & Null Statement

69. Where will the Load Module get stored

a. JCL LIB
b. PROC LIB
c. LOADLIB
d. STEPLIB

70. What is MVS / ESA

a. Multiple Virtual Storage / Enterprise System Architecture
b. Multiple Virtual System / Enterprise System Architecture
c. Multiple Virtual Storage / Entire System Architecture
d. Multiple Value Storage / Enterprise System Architecture

71. Can we define an instream proc after a EXEC Statement [Yes / No]

72. What is the prefix added before a Symbolic parameter

a. &
b. $
c. #
d. *

73. What is the addressing system for an MVS / ESA System

a. 16 bit
b. 24 bit
c. 32 bit
d. 64 bit

74. What is the addressing system for an z / OS System

a. 16 bit
b. 24 bit
c. 32 bit
d. 64 bit

75. What is the addressing system for an MVS System

a. 16 bit
b. 24 bit
c. 32 bit
d. 64 bit

76. What is the addressing system for an MVS / XA System

a. 16 bit
b. 24 bit
c. 32 bit
d. 64 bit

77. What is the present H/W Server configuration in which Mainframes is working

a. S / 390
b. S / 370
c. S / 360
c. ES / 9000

78. What does S stand for S / 390

a. System
b. Signal
c. Security
d. Standard

79. What does Z stand for in Z / OS

a. Zero down time
b. Zero dump time
c. Zero Processing time
d. None of the above.

80. Swapping is the transfer of executed data from the Real memory to the secondary storage thru the Auxillary memory [True / False]

81. Paging is the transfer of all datas for execution from the Secondary Storage to the Real memory thru the Auxillary memory [True / False]

82. How will u denote a Comment in a JCL

a. //
b. //*
c. /*
d. *//

83. What does MVS / XA stands for

a. Multiple Virtual Storage / Extended Architecture.
b. Multiple Virtual Storage / Enterprise Architecture.
c. Multiple Virtual Storage / Extended Analysis.
d. Multiple Virtual Storage / Enterprise Analysis.

84. How much bit addressing system is MVS / XA

a. 32
b. 16
c. 24
d. 64

85. What is the option for creating P.D.S.

a. 3.1
b. 3.2
c 3.3
d 3.4

86. What is the direct option for creating a member in P.D.S.

a. 3.
b. 2.
c. 2.1
d 2.2

87. What is the acronym for VTAM

a. Virtual Teleprocessing Access Method.
b. Virtual Television Access Method.
c. Virtual Telecommunication Access Method.
d Virtual Telecommunication Analysis Method.

88. Which is not a Telecommunication Access Method.

a. TCAM.
b. BTAM.
c. VTAM.
d. BDAM

89. Which is the Telecommunication Access Method used presently in Mainframes.

a. TCAM.
b. BTAM.
c. VTAM.
d. BDAM


90. Which is not a connectivity software used for Mainframe Link.

a. Passport.
b. TN3270 Plus.
c. Xtra.
d. Connectivity.

91. What is the maximum no of directory block can be given for a P.D.S

a. 8.
b. 6.
c. 7.
d. 5.


92. In a P.D.S with directory block 6 how many members can be allocated.

a. 36.
b. 35.
c. 40.
d. 30

93. What is GDG

a. Generation Data Group.
b. Generation Data Guide.
c. Generation Data Generation.
d. Group Data Generation.

94. When a RLSE parameter is coded where will the released space get stored

a. Hardware Device
b. Volume
c. Unit
d. Label

95. What is the utility used for creating a GDG

a. IEBGENER
b. IEFBR14
c. IDCAMS
d. IDCASM

96. What is the Maximum limit for a GDG

a. 155
b.250
c.255
d. 254

97. What is the parameter required for creating a GDG

a. Name, Limit
b. Name,Limit, Scratch
c. Name, Limit, Empty
d. All the Above

98. What is the maximum length of a GDG

a. 34
b. 33
c. 36
d. 35

99. How will u indicate the current generation in a GDG

a. ( 0 )
b. ( + 1 )
c. ( - 1 )
d. ( + 2 )

100. Can we create a GDG for VSAM [True / False]

101. A GDG has been derived using Limit 10 and when the Generations is created with ( + 2 ) what will be the Generation No.

a. G0001 V00.
b. G0002 V02.
c. G0002 V00.
d. G0000 V02.

102. What is the Utility used for creating model for GDG

a. IDCAMS
b. IEBGENER
c. IEFBR14
d. IEHPROGM

103. What is the correct step to be taken while creating GDG

a. GDG Index, GDG Generations, GDG Model
b. GDG Generation, GDG Index, GDG Model
c. GDG Model, GDG Generation, GDG Index
d. GDG Index, GDG Model, GDG Generation

104. Which one of the following is a Pre-defined DD Name

a. SYSTIN
b. SYSUDUMP
c. SYSMACRO
d. SYSDUMP

105. When a JOBLIB and a STEPLIB is provided which one specified will override the other

a. JOBLIB will override the STEPLIB.
b. Both nullifies each other.
c. STEPLIB overrides the JOBLIB.
d. None of the above.

106. When a Region is coded both on the JOB card and STEP card which will override the other

a. JOB will override the STEP
b. STEP will override the JOB
c. Both will Nullify each other
d. None of the above

107. When a TIME paramter is coded on both the JOB card and STEP card which one will override the other

a. JOB will override the STEP
b. STEP will override the JOB
c. Both will Nullify each other
d. None of the above

108. When a COND parameter is coded on both the JOB and STEP card which one will override the other

a. JOB will override the STEP
b. STEP will override the JOB
c. Both will Nullify each other
d. None of the above

109. How will u access the UNCATLG Dataset

a. Specify the SPACE and DCB parameter.
b. Specify the UNIT and VOLUME parameter.
c. Specify the DSN and DCB parameter.
d. Specify the DISP and DCB parameter.

110. In an Application Program the PARM parameter should be coded in which section

a. Working-Storage Section.
b. Linkage Section.
c. Report Section.
d. Input-Output Section.

111. Which Utility is used to copy records from one PS to another PS

a. IDCAMS
b. IEBGENER
c. IEBCOPY
d. IEHPROGM

Mainframe Interview Q's

MAINFRAME INTERVIEW QUESTIONS


JCL

1.What is the use of EXEC statement?

Marks the beginning of the JOB
Identifies the program to be executed
To pass the inputs to the program
To terminate the program

2.What is 822 abend ?

Job or tso session exceeded maximum job wait time or operator did not mount the required tape within allowed time limit
A region required to run the step could not be obtained.
Outlim maximum has reached.
Job or tso session exceeded maximum job wait time or operator did not mount the required tape within allowed time limit.

3. Which one of the following renames the member OLD to NEW in USERID.SYSTEST.JCL

a. //STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER USERID.SYSTEST.JCL (OLD) -
NEWNAME(USERID.SYSTEST.JCL(NEW))
/*

b. //STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=USERID.SYSTEST.JCL,DISP=SHR
//SYSIN DD *
ALTER USERID.SYSTEST.JCL (OLD) -
NEWNAME(USERID.SYSTEST.JCL(NEW))
FILE (DD1)
/*

c. //STEP1 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
RENAME ‘USERID.SYSTEST.JCL(OLD)’ +
‘USERID.SYSTEST.JCL(NEW)’
/*

d. //STEP1 EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
RENAME ‘USERID.SYSTEST.JCL(OLD)’ +
‘USERID.SYSTEST.JCL(NEW)’
/*

both a & b
both b & c
both c& d
none of the above renames the member.

4.The utility which is used to compress dataset is

IEBCOPY
IKJEFT01
IEBGENER
IEBCOMPR

5.What is the default DISP=(OLD,,) parameter for an already existing dataset when accessing

DISP=(,CATLG,DEL)
DISP=(,DEL,DEL)
DISP=(,KEEP,KEEP)
DISP=(,PASS,DEL)

6.Name the input and output DD statements used in IEBGENER utility

SYSUT1,SYSUT2
SYSTSIN1,SYSUT2
SYSDD,SYSPRINT
SYSUT1,SYSTSIN2

7. The maximum number of keys given in a SORT FIELD is

10
255
16
8
12

8.Which of the following DD statements creates the temporary dataset

//DD1 DD DSN=&&TEMP
//DD1 DD SPACE=(TRK,(2,1))
//DD1 DD DSN=A.B.C,DISP=(NEW,CATLG,DEL)
//DD1 DD DSN=&&SPACE

Both a & b
Both b & c
Both c & d
Both a & d

9.Total number of insream procedure that can be coded inside a JOB is

12
15
16
8

10.Read the following code

//STEP1 EXEC PGM= ADD
//STEP2 EXEC PGM= SUB,COND=(0,LE)
//STEP3 EXEC PGM= MUL,COND=(0,LE)
//STEP4 EXEC PGM= DIV

a. STEP1& STEP 4 is executed
b. STEP2 & STEP3 is bypassed
c. STEP1 & STEP4 is bypassed
d. STEP2 & STEP3 is executed

a. a alone is true
b. b alone is true
c. Both a & b is true
d. Both c & d is true

11.The TSO command which is used for Search string for extended is

Option 3.15
Option 3.12
Option 3.13
Option 3.14

12.What are all the different ways to pass inputs from JCL to COBOL program

a. Parm parameter, sysin dd * , sysin dd data
b. TSQ,TDQ,DFHCOMMAREA
c. Through BP0,BP1,BP2,BP3
d. It is not possible to pass data from JCL to COBOl programs

13.What are all the common parameters that can be used in both JOB and EXEC statement

a. COND,RESTART,TIME
b. COND,REGION,TYPRUN
c. COND,RESTART,TIME
d. COND,REGION,TIME

14.How will u display the scale on the screen?

CSR ON
PAGE ON
SCALE ON
COLS

15.In sort utility which is used to reformat records,before they are proceeded by the sort program

INCLUDE
INREC
OMIT
OUTREC

16.A proc has 5 steps . Step3 has cond code . how it can be overrided/nullify this condition

a. //STEP1 EXEC PROCname,STEPname.COND=value
b. //STEP1 EXEC PROCname,COND.STEPname= value
c. //STEP1 EXEC PROCname,COND=value
None of the above

17.How a PROC can be restart from a particular step in a JOB?

Coding RESTART=STEPname.PROCSTEP in the JOB card
Coding RESTART=PROCSTEP.STEPname in the JOB card
Coding RESTART=PROCSTEP.STEPname in the procedure
Coding RESTART=STEPname.PROCSTEP in the procedure

18.What is the TSO command used to rename the sequential dataset with the disposition of SHR

ALTER
REName
CHANGE
MODIFY

19.What is the TSO command used to identify a dataset to which user or to which JOB it has been allocated?

FIND
WHOGOT
WHEN
PROFILE

20.What command is used to check the syntax of a JCL without running it?

TYPRUN=HOLD
TYPRUN=SCAN
TYPRUN=CHECK
TYPRUN=VALIDATE

VSAM

1.What is the defalut record size for a non spanned dataset

a. (80 80)
b. (4089 4089)
c. (4089 32600)
d. (80 4089)

2.The default print format is

a. Character
b. Hexadecimal
c. Dump
d. None of the above.

3.Buffer space cannot be specifed in which of the following

a. Cobol program
b. Assembler program
c. AMS define
d. DD statement

4.How many buffers are alloted to VSAM KSDS and ESDS

a. 2 data buffer for KSDS and 2 data buffer,1 index buffer for ESDS
b. 1 data buffer,1 index buffer for KSDS and 1 data buffer for ESDS
c. 2 data buffer, 1 index buffer for KSDS and 2 data buffer for ESDS
d. 2 data buffer, 1 index buffer for KSDS and 1 data buffer for ESDS

5.Which of the following entry names are valid for ALTER FREE SPACE?

a. Index component name
b. Data component name
c. a only
d. b only
e. Both a & b

6.Freespace(100 100) refers to

a. Both control interval and control area will be left empty and no records in control interval and no control interval in control area..
b. No freespace in control interval and in control area.
c. 1 record in each control interval and 1 control interval in each control area.
d. 100 records in control interval and 100 control intervals in control area.

7.Default cluster type is

a. NUMBERED
b. NON-INDEXED
c. INDEXED
d. None of the above

8.VSAM error code 05 refers to

a. Close option incompat file device''open implies tape; tape not used
b. Read, wrong length record
c. Invalid key vsam ksds or rrds
d. Open, file not present
e. None of the above

9.An alternate index can be defined for

a. RRDS,KSDS
b. KSDS,ESDS
c. ESDS,RRDS,KSDS
d. KSDS,ESDS,LDS

10.Using REPRO to reorganize a KSDS , which of the following is true?

a. Input must be ascending key sequence.
b. No dupilicates keys are allowed.
c. Non-unique keys are allowed.
d. Both a and c
e. Both a and b

11.Which of the following create a GDG in the name of USERID.SYSTEST.GDGDATA with 10 Generations

a. //STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG ( NAME ( USERID.SYSTEST.GDGDATA) -
ENTRIES(10)
/*

b. //STEP1 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG ( NAME ( USERID.SYSTEST.GDGDATA) -
LIMIT(10) -
/*

c. //STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
BLDG INDEX = USERID.SYSTEST.GDGDATA
ENTRIES = 10
/*

d. //STEP1 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
BLDG INDEX = USERID.SYSTEST.GDGDATA
ENTRIES = 10
/*

e. None of the above creates GDG

12.Which of the following statement is true?

ESDS can be converted to LDS , LDS can be converted into ESDS
KSDS can be converted to LDS, LDS can be converted into KSDS
RRDS can be converted into LDS, LDS can be converted into RRDS
None of the above

13.Minimum and maximum size of control interval and control area is

512 bytes,32 KB and 1 track and 1 cylinder respectively
512 bytes,4096 bytes and 1 BLK, 1 track respectively
4096 bytes,32 KB, 15 tracks,1 cylinder respectively
None of the above

14.Spanned records are accessed in

EXPORT
MOVE
LOCATE
None of the above

15. VERIFY command cannot be used for

a. KSDS & RRDS
b. LDS & Empty dataset
c. LDS & ESDS
d. LDS & RRDS
e. ESDS & RRDS

16. Total number of RDF & CIDF for variable and fixed length VSAM control interval is

a. 2 RDF ,1 CIDF and 1 RDF, 1 CIDF respectively
b. 1 RDF ,1 CIDF and 1 RDF, 1 CIDF respectively
c. 1 RDF ,1 CIDF and 2 RDF, 1 CIDF respectively
d. 2 RDF ,1 CIDF and 2 RDF, 1 CIDF respectively

17. When a GDG is created for a first time what is the current version of the GDG

+1
-1
0
None of the above
18. A GDG is created In a particular step of a proc , how to refer the current generation in the third step of the proc? and what is the disposition?

(+1) ,DISP=(NEW,CATLG,DEL)
(+1) ,DISP=(OLD,KEEP,KEEP)
(+3) ,DISP=(NEW,KEEP,KEEP)
(+3) ,DISP=(OLD,KEEP,KEEP)

19. What is the sort card for the following condition
Compare the 8 ,9 th character with 11 and 12 th character in vsam file variable length records, If it matches copy those records in outfile

SORT FIELDS= COPY,OUTFIL=01,INCLUDE COND=(8,2,CH,EQ,11,2,CH)
SORT FIELDS= COPY,OUTFIL=01,INCLUDE COND=(12,2,CH,EQ,15,2,CH)
SORT FIELDS= COPY,OUTFIL=01,INCLUDE COND=(2,8,CH,EQ,2,11,CH)
SORT FIELDS= COPY,OUTFIL=01,INCLUDE COND=(2,12,CH,EQ,2,15,CH)

20. Consider three generations of a GDG exist. How to refer the first generation?

GDGname (+1)
GDGname (+3)
GDGname (-3)
GDGname (-2)

CICS

1. CICS Error code AEIR refers to

NO SPACE ERROR
INVREQ ERROR
QIDERR ERROR
QZERO ERROR

2. The maximum number of Handle conditions can be used in a handle condition paras is

16
12
15
10

3. Which of the following CICS program governs the flow of control among CICS application program

Program control program
Interval control program
Task control program
Storage control program

4. A Mapset consists of three maps and 10 fields on each map. How many of the following macros will be needed

DFHMSD statements 1
DFHMDI statements 3
DFHMDF statements 10
DFHMSD statements 3
DFHMDI statements 3
DFHMDF statements 30
DFHMSD statements 1
DFHMDI statements 3
DFHMDF statements 30
DFHMSD statements 1
DFHMDI statements 4
DFHMDF statements 10

5. The commands used for CICS file browsing

a. START,READ,WRITE,REWRITE,DELETE
b. OPEN,CLOSE,FETCH
c. STARTBR,ENDBR,RESETBR,READNEXT,READPREV
d. INSERT,UPDATE,DELETE,CREATE

6. Moving 1 to FLD + A results in

a. Points the cursor to the initial position
b. Makes MDT value to ON
c. Reset the flag byte
d. Both a & b
e. Both a & c

7. which of the following statements is true

a. LINK creates the lower logical level , XCTL does not creates the lower logical level
b. XCTL creates the lower logical level , LINK does not creates the lower logical level
c. Both LINK and XCTL creates the lower logical level
d. Both LINK and XCTL does not creates the lower logical level

8. which of the following statements is true

a. TSQ can be Random read, Rewrite is not possible in TSQ
b. TSQ can be Random read, Rewrite is possible in TSQ
c. TSQ can be read only sequential manner,Rewrite is not possible in TSQ
d. TSQ can be read only sequential manner,Rewrite is possible in TSQ

9.What is the most common way to name the TSQ

a. TASKID + TERMID
b. TRANSID + TERMID
c. TERMID + TRANSID
d. TERMID + TASKID

10. Name the communication method which is used to communicate with remote terminal

TCAM
BTAM
VTAM
ISC

11. In which control table plan are stored

DCT
PCT
RCT
TCT

12. What is the command which is used to activate and deavtivate the Handle Conditions in CICS in the middle of the program

ENQ & DEQ
PUSH & PUSH
GETMAIN & FREEMAIN
ACQUIRE & RELEASE

13. What command is used to clear all the un protected filed in the screen

ERASE
CLEAR
ERASEAUP
ERASEUP

14. What is the name of the facility provided by CICS to free the application program from the problems caused by NMDS

Terminal paging
Logical message
Journal recovery
Transaction Routing

15. How to use the extended attribute?

REUSE=YES
GETMAIN=YES
EXTAT=YES
EXTATT=YES

16. State which of the following statement is true

TWA store the information of the communication area.
TCTUA Store the length of communication area
CWA stores the data of the communication area
All the above statements are false
All the above statements are true

17. State which of the following is true

ESDS can be accesed from CICS
QSAM files cannnot be accesed from CICS
DB2 Tables can be accesed from CICS
All the above are true
All the above are false

18. CICS error code AEIP refers to

INVREQ
MAPFAIL
QZERO
QIDERR

19. Using CURSOR(m n) in the send map command is a type of what cursor positioning

STATIC
REALATIVE
SYMBOLIC
DYNAMIC

20. What is the picture clause definition for RESP code in CICS

S9(9) COMP
S9(8) COMP
S9(4) COMP
S9(7) COMP-3

DB2 & SQL

1. Sqlerror code –923 refers to

a. Authorisation failure.
b. Connection not established
c. Unsuccessful execution due to unavailable resources
d. Unsuccessful execution due to deadlock time out.

2. IDMS belongs to

File management system
Hierarchial database management system
Network database management system
Relational database management system

3. The key word which is used to get the unique records from the table is

DISTINCT
LIKE
UNIQUE
EXACT

4. What is the picture clause definition of SQLERRP

S9(9) COMP
X(8).
S9(4) COMP
S9(7) COMP-3

5. The Utillity required for compiling and executing a COBOL,DB2 program is

IKJEFT01,IEBGENER,IEWL
IKJEFT01,IEBEDIT,IEWL
IKJEFT01,IGCRCTL
IKJEFT01,IGYWCLG

6. What is collection

Named collection of packages
Named collection of plans
Named collection of DBRMs
Named collection of CATALOGs

7. what is index cardiniality

No of distinict values a column contains
One divided by number of distinct values of a column
Total number or rows a table contains
Tota number columns a table contains
e. None of the above

8. Synonyms are nothing but the

a. Virtual table for a base table
b. Alternate name for a base table
c. Copy of a base table
d. Child table for the base table

9. The catalog which contains all the sql atatements of a DBRM which are bound into a plan is

a. SYSIBM.SYSPACKSTMT
b. SYSIBM.SYSSTMT
c. SYSIBM.SYSDBRM
d. SYSIBM.SYSPLAN

10. The maximum number of table used in FROM clause in a SQL query is

12
15
16
8

11. Sqlerrorcode –602 refers to

The operands of an arithmetic or comparison operation are not comparable
The name of the object to be created is identical to the existing name of the object type
Too many columns specified in a create index
A clustering index already exists on table

12. outer join results in

Includes rows from tables when there are no matching values in the tables
Includes rows from tables when there are matching values in the tables
Does not Includes rows from tables when there are no matching values in the tables
Does not Includes rows from tables when there are matching values in the tables

13. SPUFI stands for

Sql Program Using File Input
Sql Program Using Flag Input
Sql Processing Using File Input
Sql Processing Using Flag Input

14. WHENEVER can be used for

NOTFOUND
SQLWARNING
SQLERROR
SQLCODE

Both a & b
Both a & c
Both b & c
a,b and c

15. The command which is used to delete the plans in the catalog

EXPORT
REUSE
DELETE
FREE

16. Read the following code

EXEC SQL
DECLARE PTR-CURSOR CURSOR FOR
SELECT FT-EMP-SALARY FROM EMP-TABLE
WHERE FT-EMP-ID = FT-EMP-ID
END-EXEC. What is the content of the resultant table when open statement is executed.

Resultant table will contain FT-EMP-SALARY
Resultant table will contain FT-EMP-ID
Resultant table will contain all columns of the table
d. Error occurs

17. What is the picture clause of the null indicator variable?

S9(8) COMP
S9(4) COMP
S9(7) COMP-3
S9(9) COMP


18. What does it means , if the null indicator has –1

The field is truncated
The filed is null
The filed is not null
None of the above

19. Sqlerror code –504 refers to

The cursor identified in a fetch or close statement is not open
The cursor name is not defined
The cursor identified in an open statement is already open
The cursor identified in the update or delete statement is not

20. The dataset which contains information about the active log and archive log is

SMF
GTF
DB2PM
BSDS
None of the above

COBOL

1. What is the maximum no of AFTER clause used in a PERFORM statement ?

3
8
4
7

2. Read the following code .

01 WS-N PIC 9(2) VALUE ZERO

A-PARA.
MOVE 5 TO WS-N.
PERFORM B-PARA WS-N TIMES
B-PARA.
MOVE 10 TO WS-N. How many times will B-PARA be executed.

5 times only
10 times only
15 times only
Closed loop no end
None of the above

3. 01 EMP.
05 EMP-TAB OCCURS 10 TIMES INDEXED BY WS-INDEX.
How the index value is increased in COBOL search

a. ADD 1 TO WS-INDEX.
b. COMPUTE WS-INDEX=WS-INDEX + 1
c. SET WS-INDEX UP BY 1
d. None of the above.

4. How many bytes does a s9(9)v9(9) comp-3 occupies.

a. 9
b. 18 bytes
c. 19 bytes
d. 10 bytes
e. None of the above.

5. Variables declared in Main program and Sub program is called

a. Positional parameters,Keyword parameters respectively
b. Keyword parameters,Positional parameters respectively
c. Actual parameters,Formal parameters respectively
d. Formal parameters,Actual parameters respectively
e. None of the above.

6. To use START function for reading a file , the file file should be accessed in

a. Sequential mode
b. Skip-sequential mode
c. Random mode
d. Dynamic mode

7. The syntax for using reference modification is

a. VARIABLE(starting position, length)
b. VARIABLE{starting position, length}
c. VARIABLE(lenght : starting position)
d. VARIABLE{length : starting position}
e. VARIABLE(starting position : length)

8. The default test condition for PERFORM statement is

a. TEST AFTER
b. TEST BEFORE
c. WITH TEST
d. WITHOUT TEST

9. 77 A PIC Z(5)V9(3).
MOVE 345.45 TO A.
DISPLAY A.

a. 34545
b. 0034.5450
c. 00345450
d. BB345.450
e. BB345450

10. PSW stands for

a. PROGRAM STORAGE – WORK AREA
b. PROGRAM STATUS – WORK AREA
c. PROGRAM STATUS WORD
d. PROGRAM STORAGE WORD
e. None of the above

11. 77 MYSTRING PIC X(20) VALUE ‘ABCDEFGHIJKLMNOPQRST’
77 TALLY-COUNT PIC 99 VALUE 5.
.
PROCEDURE DIVISION.
100-PARA.
INSPECT MYSTRING TALLYING TALLY-COUNT FOR CHARACTERS.
DISPLAY TALLY-COUNT.

a. 2
b. 5
c. 20
d. 25

12.The Key word which is used to use the same COPY BOOK more than once in a COBOL program is

a. COPY
b. INCLUDE
c. REPLACING
d. LIKE

13.What are all the different ways to pass inputs from JCL to COBOL program

a. Parm parameter, sysin dd * , sysin dd data
b. TSQ,TDQ,DFHCOMMAREA
c. Through BP0,BP1,BP2,BP3
d. It is not possible to pass data from JCL to COBOl programs

14. What is the length of a page ?

2K
4K
8K
16K

15. State which of the following statements is true?

VALUE clause is allowed in WORING-STORAGE SECTION.
VALUE clause is not allowed in LINKAGE SECTION
VALUE clause is allowed in LINKAGE SECTION
VALUE clause is not allowed in WORKING-STORAGE SECTION

a. a alone is true
b. b alone is true
c. Both a & b is true
d. Both a & c is true

16. What key word is used to trap the error , when the sub program called is not found

ONSIZE
ONOVERFLOW
INVALIDKEY
d. AT END

17.What is the size of the COMP-1 variables

a. 2 bytes
b. 4 bytes
c. 8 bytes
d. 16 bytes

18. Name the function which is used to get current date from the system

DATE
CURRENT DATE
CURRENT_DATE
CURRENT-DATE
19. How many bytes will s9(18) comp3 occupies?

10 bytes
18 bytes
9 bytes
4 bytes

20. Read the following code

01 WS-A PIC X(1).
01 WS-B REDEFINES A PIC X(2) .
.
.
PROCEDURE DIVISION.
100-PARA.
MOVE ‘12’ TO WS-B.
DISPLAY A.
DISPLAY B.
What is the output?