Sei sulla pagina 1di 11

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

What is the meaning of keyword in JCL? What is its opposite? 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 The JOB statement is the first in a JCL stream. Its format is // jobname, keyword JOB, accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFY, CLASS, etc. Describe the EXEC statement, its meaning, syntax and keywords? 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. Describe the DD statement, its meaning, syntax and keywords? 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. What is a PROC? What is the difference between an instream and a catalogued PROC? 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. What is the difference between a symbolic and an override in executing a PROC? 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. What is RESTART? How is it invoked? RESTART is a JOB statement keyword. It is used to restart the job at a specified step rather than at the beginning.

What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? 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 Explain concatenating datasets? 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. What is the difference between specifying DISP=OLD and DISP=SHR for a dataset? DISP=OLD denotes exclusive control of the dataset; DISP=SHR means there is no exclusivity. What is MOD and when would you use it? DISP=MOD is used when the dataset can be extended, ie, you can add records at the end of an existing dataset. 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? 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. How do you designate a comment in JCL? The comment statement is //* followed by the comments. What is the meaning of the EXEC statement keyword, COND? What is its syntax? 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!) What is the improvement to COND= in the latest version of MVS? 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. What is the purpose of the PARM keyword in the EXEC statement? The value after the PARM= specifies control information to be passed to the executing program of the job step What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with? 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.

What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with? 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. What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement? 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. How is the keyword DUMMY used in JCL? For an output file DUMMY specifies that the output is to be discarded. For input it specifies that the file is empty. What does the keyword DCB mean and what are some of the keywords associated with it? 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. What is the difference between BLKSIZE and LRECL? BLKSIZE specifies the number of bytes How will you call the return code of JCL ? How can be determined if date contained in the header of a file is date current date? I have a main program in a pds i.e a.b.c and sub program is in a.b.d.The question is how would be the dd statement Why we use export-import over repro? How to by pass the step without cond parameter? What is the advantage of coding RECFM=F over RECFM=FB.I know the concept that RECFM=FB is fast, easily accessable due to the fact that FEW (not 1 records) records are allocated to each BLOCK. Then who would like to specify RECFM=F? And why?

How to invoke a jcl(with all control cards, like job crad and all) from another jcl? What is the use of sysprint, sysin, sysout, dummy in jcl ? What could be the disposition parameter that i would have to use in the jcl if i have a file that has to be created newly for every successful run of the program ,but at the same time it should retain the old data if my program abend in the middle and restarts. could you please provide me the code? What is difference between addressing mode and residential mode? How many jobs(maximum) can we give in one member to submit?How many steps(maximum) can we give in one job?How many steps (maximum) can we give in one member to execute after submitting? How many jobs(maximum) can we give in one member to submit?How many steps(maximum) can we give in one job?How many steps (maximum) can we give in one member to execute after submitting? There are 100 steps in a job card.If we want to execute 100th step,what to do? and but remaining 99 steps should not execute What is the importance of ADDRSPC parameter in EXEC statement and how is it different from REGION parameter of EXEC statement? How do you convert negative packed decimal number to positive PD using JCL? Does mainframe will support object oriented concept? Justify. What are the difference between in-stream procedure and inline procedure in jcl ? What is meant by user request and user query and the exact difference between them? What is abend s322? What does IEFBR14 utility is used for? What PERFORM parameter in EXEC statement is meant for? What is the work of initiator? Write the DD step names used in IERCOMPR?

How to Execute from the second step in the PROC that is used in the JCL? What does a sysin in ICEMAN utility do? what does Sort fields=copy coded in the sysin mean? SCBSM10E EXEC PGM=ICEMAN //SYSOUT DD SYSOUT=V //SORTLIB DD DSN=SORT.SORTLIB,DISP=SHR //SORTIN DD DSN=&&CB10AWDS,DISP= (OLD,DELETE) //SORTOUT DD DSN=&&CB10ASRT,DISP= (,PASS),SPACE=(CYL,(2,1),RLSE), // UNIT=TEMP,DCB= (RECFM=FB,LRECL=90,BLKSIZE=0) //SORTWK01 DD UNIT=TEMP,SPACE= (CYL,3,,CONTIG) //SORTWK02 DD UNIT=TEMP,SPACE= (CYL,3,,CONTIG) //SORTWK03 DD UNIT=TEMP,SPACE= (CYL,3,,CONTIG) //SYSIN DD DSN=SYS1.USER.PROCCTL (CB10CSRT),DISP=SHR //* where SYS1.USER.PROCCTL (CB10CSRT) has sort fields=copy How can I get the number of records of a sequential file without browsing it? How can i search a character string in all the generations of a GDG dataset at once.Any code,utility will do? How can i count the no of records of a file by giving set of files in a dataset in a PDS member? If condition is given in job step, what about first step, whether the condition is checked for it or not? If checked then with which return code is it compared? What is the return code 160 thats what i m getting in vsam file creation? Which is default record format(RECFM)?

a)F b)FB c)V d)VB Can anyone tell me more about back-end testing. I got a req for tester with mainframe(using mainframe utilities, ISPF, JCL etc). I want to what exactly do we test at back-end and how with a small ex if possible. I have some knowledge of mainframes, What is checkpoint restart option in jcl? What is sysda? How pass a value through parm parameter which is greater than 100 bytes? How to restart a job from the step of a cataloged procedure? How to get access authorization, like i got when i wanna delete it " some one using this data type try later."? It is possible to open an empty vsam dataset in an input and output mode? what is the use of syscat What is cataloging Data set? what is the purpose of using Notify parameter in job statement ? How do you skip a job and run step 1 and step3 ? A job has 3 steps by name step1, step2, step3. if i don't want to execute step2, what i have to do. Use of library statements Can anyone pls explain in detail the use of LIB statements like JOBLIB,STEPLIB,JCLLIB,PROCLIB.... as i know where to use these but not clear on the purpose of using.... Explain the usage of COND parameter in JCL with an example What is the different types of sort in JCL and What is the intrensic function of COBOL

What is the default value of TIME parameter? Is it possible to set the return code to specific step? If so how? What is disposition (MOD,DELETE,DELETE)means? What's the use of this disposition? What are the common errors you have ever seen during execution What is difference between JOBLIB and JCLLIB? What is the basic programme logic in JCl that will help to compile most of COBOL programmes in Z/OS? Explain the probable cause of an Sx13 and Sx37 abend. How do you duplicate data set in JCL what is the difference between the msgclass and the msglevel parameter in the jobcard how to solve abend s322 What is the difference between FECFM = F, REDFM = FB, RECFM = VB, RECFM = v and RECFM = U How to override EXEC PGM in a PROC thru JCL ? What is AZI6 abend? What is the use of utility DFSRRC00? What is the usage of subsys parameter in JCL and how it is more advanced than AMP What is the use of ICETOOL Utility? What is the cause for abend SOC9 and SOC2? How to lock a particular row (record) in a data set? How do you sort date, month and year in JCL What is AMP parameter and its use e.g. AMP='BUFNI=10,BUFND=10' means what? what does the statement //sysout dd sysout=* means?

one sysout comes in the ddname's place and the other in the opearand field!so what is the difference between the two? How do you concatenate odd/even generations in GDG's? what are sort cards What are multiple symbolic parameters. Can we have multiple symbolic parameters in asingle JCL. If so kindly explain with an example What is the difference between SYSPRINT and SYSOUT (in JCL)? What is the difference between variable length & fixed block datasets? How to update a particular row in a file using JCL? Any utilities? Don't want to use any programs. 1) Step01 creating New GDG file(+), 2) Step02 Delete file(+), 3) Step03 create new GDG file with same file name What is the version for that file? What are the advantages of GDG? What is the diffrence between a GDG and a File? Can we create pds member by using ispf 3.2 potion? how to execute a four steps in a reverse order ? PS and PDS What is the difference between PS and PDS ? If a PS file is almost equal to member of a PDS. Then what is the neccerasy to use a PS file.? JCL SORT utility Can we copy the data of two input files to two output files using SORT utility with the data as 'SORT FIELDS=COPY' in the same step? What is positional parameter and keyword parameter and what is the difference between them?

Can we concatenate two Datasets having different LRECL? If yes, then how?

send email from mainframe I need to send an email from mainframe using the parmcard which has HELO MAIL FROM: RCPT TO: DATA FROM: TO: SUBJECT: etc but i also need to get the system date and time each time I do so. How do I get that when I submit the jcl which uses this parmcard as input? //MYJOB JOB(T,U202,SH1),'FRANK SMITH',CLASS=A //STEP01 EXEC PGM=PGM01 //INFILE DD DSN=TEST.PAYROLL.DATA,DISP=SHR //SYSOUT SYSOUT=A //STEP02 EXEC PGM=PGM02 //INFILE DD DSN=TEST.PERSONEL.DATA,DISP=SHR Which change to STEP02 above will specify that STEP02 CANNOT be automatically restarted by an operator if that step fails during execution? Choice 1 //STEP02 EXEC PGM=PGM02,AR=NS Choice 2 //STEP02 EXEC PGM=PGM02,RST=NOP Choice 3 //STEP02 EXEC PGM=PGM02,ARST=NOP Choice 4 //STEP02 EXEC PGM=PGM02,OP=NST Choice 5 //STEP02 EXEC PGM=PGM02,RD=NR

How can you rectify the SOC7 value Send email from JCL in Mainframe How to send a Mainframe file to a mailbox using a JCL? Mailbox could be any? What parameters need to be passed in the JCL like - Host address, mail address, etc..? Difference between SYSOUT and SYSPRINT JCL DD Statement The step contains more than 3273 DD statements then what will happen the job if I submit..? .//jclsmt dd =SYSOUT (*,intdr) says what?

When a Step has ended with JCL error the data sets WOULD BE allocated? Sort Card What is the SORT CARD pertaining to the following statements: SD SORT-FILE. 01 SORT REC. 05 NAME PIC X(10). 05 FILLER PIC X(45). 05 DEPIT PIC X(15). 05 AGE PIC 9(3). 05 SALARY PIC 9(6)V99 COMP-3. 05 FILLER PIC X(13). SORT SORT FILE ON ASCENDING KEY NAME SALARY DESCENDING KEY AGE. OPTIONS: a. SORT FIELDS=(1,10,CH,A,774,5,PD,A,71,3,ZD,D) B. SORT FIELDS=(1,10,CH,A,71,3,PD,D,74,5,ZD,A) C.SORT FIELDS=(1,10,CH,A,71,3,PD,A,74,5,ZD,D) D.a. SORT FIELDS=(1,10,CH,A,71,3,ZD,D,74,5,PD,A) E.NONE JCL Steps How to Run same steps in a jcl 'n' number of time each time with different input files without repeating the steps n times? Run a step 'n' times How to Run same steps in a jcl 'n' number of time without repeating the steps n times? Which spool command is used to release a job that has been submitted with HOLD option? Space Identifier (ASID) What is the name of the job that has an address space identifier (ASID) of one?

what is the in stream data ? JES what is jes?explain in detail about jes? what is the difference between jes2 and jes3? compress PDS

how did you compress a pds? explain in detail? TSO command what is an SDSF? How to create a PDS file using JCL CEEDUMP and SYSUDUMP Hi, Can anybody please tell me what is the exact purpose of the CEEDUMP and SYSUDUMP and How effectively we can use them for the problem solving( abend handling) calculate total space allocated for file If file is having space parm as SPACE=(CYL,(10,10)) i.e. 10 primary, 10 secondary. So how much cylinders totally it will take before dataset filled till end? DISP Parameter If the DISP parameter for a dataset is DISP=(NEW,PASS,CATLG), What will happen when the JCL is run? The first time? The second time?

MCQ Comparison Operators In what order does the system evaluate comparison operators? Coding RECFM=F over RECFM=FB What is the advantage of coding RECFM=F over RECFM=FB why not F.

Potrebbero piacerti anche