Tuesday, April 24, 2012

jcl-3

Q)      How do you pass parameters to the program as the job is being executed ?
A)        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.

Q)      Why do you use a control card?
A)        A control card can be a member of a pds or a sequential dataset and is used for storing the date fields, Definitions of VSAM files....etc. You use control card because you cannot use a instream procedure in a procedure. Generally you will be calling a Proc from your Jcl and you cannot code instream procedure in the Proc and so you will point to the dataset which is called control card.

Q)      How do you submit JCL via a Cobol program?
A)        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. E.g. 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.

Q)      How do you submit a JCL under CICS environment ?
A)        Pass all the jcl codes to a COBOL variable(should be declare using OCCURS clause) and the write the line one by one to the spool using CICS commands like SPOOLClose SPOOLOpen SPOOLWrite . For more help reffer CECI of CICS or CICS manual

Q)      What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?
A)        TIME=1440

Q)      Definition of COND parameter in JCL
A)        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.

Q)      What is meant by S0C7 system abend code?
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.

Q)      How to pass the temp dataset form one JOB step to another?
A)        By specifying the DISP as PASS for the temp dataset

Q)      What is a COND parameter in JCL?
A)        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.

Q)  Write a jcl to execute a job by 7 a.m on Jan 20,1986 ?
A)        THE code IS : //*MAIN DEADLINE=(0700,B,012086)

Q)  How many types of libraries are there in JCL ?
A)        Libraries are of three types.1.Sytem Libraries: SUCH AS SYS1.LINKLIB2.Private Libraries: SPECIFIED IN A JOBLIB OR STEPLIB DD STATEMENTS.3.Temporary Libraries: CREATED IN A PREVIOUS STEP OF THE JOB.

Q)  What u mean by include statement in JCL ?
A)        An include statement identifies a member of 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.

Q)  The maximum number of in-stream procedure you can code in any JCL is ?
A)        Fifteen(15).

Q)  What you mean by skeleton JCl?
A)        Jcl which changes during run time i.e. the values for the jcl such as pgm name , dd name will change .ie same jcl can be used for various job, equivalent to dynamic sql...

Q)  How do you submit a JCL under CICS environment ?
A)        Edit the JCL in Extra partition TDQ and submit the same using some system command (not sure) under CICS subsystem. This is what i think, please clarify....

Q)  What is JCL ?
A)        JCL is Job Control Language and is used for Batch processing. The startup procedures of OS and standard products like CICS etc are written in JCL. It is interface between operating system(MVS) & application program. when 2 related programs are combined together on control statements is called job control language

Q)  What is the max blocksize for a Tape file?
A)        It is 32,760.Based on that we can calculate efficient number of Records in a Block

Q)  What are the basic JCL Statements for a Job?
A)        JOB                 : Identifies a job and supplies accounting info
EXEC                : Identifies a job step by indicating the name of the program to be executed.
DD                     : Identifies a data set to be allocated for the job step
Delimiter(/*)       : Marks the end of an in-stream dataset
Null(//)                : Marks the end of a job
Comments(//*)   : Provides Comments
PROC                : Marks the beginning of a procedure
PEND                : Marks the end of a procedure
OUTPUT                       : Supplies options for SYSOUT processing.

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

Q)        Which is the most widely used batch performance monitor for DB2?
A)        DB2PM

Q)        What is QSAM error usually when it is occurs?
A)        Usually it is occurs at the time of job submission.

Q)        What is the purpose of include statement in a JCL?
A)        It is used as an alternative for STEPLIB. When we specify the dataset name in include ,it will search in all the datasets specified in the include dataset.

Q)        What does S0C4 error mean?
A)        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.

Q)        In which table PLAN is registered in ?
A)        RCT

Q)        What is GDG?
A)        GDG - group of dataset that are logically or chronologically related, referred by name and a relative generation number - an integer which identifies the generation of a dataset and is coded in parentheses after dataset 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 datasets 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

Q)        what do you mean By spooling? Expand SPOOL?
A)        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

Q)        For how long a job can be executed continuously in a mainframe ?
A)        248 DAYS

No comments:

Post a Comment