Thursday, December 11, 2008

JCL / VSAM Technical Questions

Where can program checkpoints be stored for use in a restart ?
(1) CHCKPOINT DD statement
(2) SYSCHK DD statement
(3) CHKOUT DD statement
(4) CHECK or DD statemen

What is the function of DD name parameter with a 2 part structure; Audit.Report ?
(1) Override the Audit DD statement in the report
(2) Override the Report DD statement in the Audit procedure
(3) Concatenate a dataset onto a DD statement in a called module
(4) Delete the Audit DD statement in the Report



What is the purpose of the ‘DD KEYLEN’ parameter?
(1) Specify the length of a data set key in bytes
(2) Override the key length of an SMS defined VSAM dataset
(3) Override the key length specified in the dataset label
(4) All of the above


Must tape dataset definitions include VOL=SER specifications?
(1) Yes
(2) No
(3) Only for uncataloged datasets
(4) Only for cataloged datasets


In order to continue a job after a return code of 12 in step1, what the step2 EXEC statement include?
(1) CONTINUE
(2) COND = (12,NE)
(3) COND = (12,GE)
(4) COND = (12,EQ)


In SMS datasets, what is the function of the ‘DD MGMTCLAS’ keyword?
(1) Specify a management class for a new dataset
(2) Lookup a storage profile from the class library
(3) Begin a storage class definition block
(4) Alters the default storage profile for the dataset


How can the submitting user’s RACF authority be overridden in a job stream?
(1) Through the USER parameter
(2) Through the USER and PASSWORD parameter
(3) By notifying the console operation to override the authority
(4) Through the RACF parameter


What parameters can be used to limit the number of records written to a SYSOUT dataset ?
(1) LIMIT
(2) OUTLIM
(3) SIZE
(4) MAX


What statement can be used to send data to another MVS JES3 node ?
(1) LINK
(2) CONNECT
(3) XMIT
(4) SEND


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
(1) As the (0) generation
(2) As the (+1) generation
(3) As the (-1) generation
(4) Without the generation number


If a generation data set is specified as input without the generation number, what will the input to the DD ?
(1) the most recent generation created
(2) the earliest generation created
(3) a concatenation of all the cataloged generations
4. a jcl error will be returned to the job



What happens to the NOTIFY message when a user logs off the system
before the job is completed?



1)JOB ends with a jcl error.
2)NOTIFY message is created
3)Msg saved until the user logs on again.
4)No messages generated.



How do you Restart a particular step in a JCL? jcl




1)Restart=stepname.procname
2)Restart=procname.stepname
3)Restart=procname
4)Restart=stepname.procname.ddname



What is the parameter to be passed in the job card for the unlimited
time,irrespective of the job class?



1)TIME=0
2)TIME=1440
3)TIME=UNLIMIT
4)TIME=NONE



What is the maximum number of GDG versions we can create?




1)255
2)105
3)15
4)99




If SYMBOLIC PARAMETER is specified on PROC AND EXEC which one is
executed?



1)PROC takes preference
2)EXEC takes preference
3)BOTH takes preference
4)Nothing




How will you make return code to Zero in IDCAMS? jcl




1)using set command
2)using COMPUTE command
3)Using MOVE statement
4) Not possible.




How will you submit JCL via COBOL program ?




1)Using IMS
2)Use a file with sysout=(*,intrdr)
3)Not Possible
4)None of the above



If there are two jobs with class A ,prty=9 and class B with prty=10 l
and if class A has a higer prty which one will execute first?



1)Job with class A and prty=9
2)class B with prty=10
3)Both will not be executed.
4)Both will be executed simultaneously?
5)class has no effect on prty




What will happen if I specify DISP=MOD for a new file? jcl




1)It will change disp as NEW.
2)It will not create.
3)It will show error.
4)None of the above.







How to referback the VOLUME given in previous step? jcl




1)By specifying vol=ser
2)By specifying *.stepname.ddname
3)Both
4)None of the above.

Which of the following is valid in a catolog procedure




1)SYSIN DD *
2)JCLLIB
3)JOBLIB
4)EXEC procname



What is the version number of gdg that is created in the same step




1)+1
2)0
3)-1
4)none




What SUM FIELDS = None will do in sort




1)It will copy dataset without sorting.
2)It will sort the records.
3)It will eleminate the duplicates.
4)It will not copy at all.


What is the return code if u print a empty VSAM file?




1)0
2)118
3)120
4)160


Which of the following is compulsary for KSDS creation?




1)Space
2)DATA component
3)INDEX component.
4)CISZ

How to set return code of a job to zero with out making any changes in
job steps?



1)using SET command
2)using MOVE command
3)using IF and SET command
4)not possible


How many ways do you know to pass external data into program?




1)2
2)1
3)3
4)4

In variable record length LRECL value is largest record in the file plus four byte. Here this four bytes contains

A. The information saying that it is variable
B. the actual length of each variable length record in the file
C. Both A and B
D. None of the above


I have 5 steps in a jcl . I have to execute step 3 , bypass step 4 and execute step 5 . How to achieve this

1.using cond statement
2.using restart=stepname
3.using iebedit utility
4.both 1 & 3

What are the changes to be made in jcl so as to do testing

1.DD statement with the data used to test the execution of the program.
2.Instream data is used to test the data
3.Dummy statement is used to test the execution of the program\
4. Can not be tested


Can I copy a fixed block record length file to a VB and vice versa

1.Only from fixed block record length to VB
2.Only from VB to fixed block length file is possible
3.Both 1 & 2
4. Both not possible


Can you submit multiple jobs in a jcl simultaneously

1.No,Only one
2.Not more than 2
3.yes
4. Insufficient information


What are the causes for soc01, soc04, soc05 soc07 and socb abends

1.Data Exception, Operation Exception, Addressing Exception, Protection Exception, Divisible by Zero
2.Operation Exception, Data Exception, Addressing Exception, Protection Exception, Divisible by Zero
3.Operation Exception, protection Exception, Addressing Exception, Data
Exception, Divisible by Zero
4. All the above


.What will happen if you attempt to restart a job in the middle of a // IF and // ENDIF

1.It will execute.
2.It will not execute the step in the middle of a // IF and // because of condition codes.
3.the condition code of the previous step will be applied in cond parameter and goes for execution


What is the difference between the data definition name and data set name in the DD statement of jcl

1. DDname is used in farward reference while referring the datasets where dataset name is used to name the dataset to DD.
2. DDname is used to name the dataset and dataset name is used for searching the dataset
3. DDname is used to refer the dataset and dsname is for creating the dataset
4. All the above


How do you skip a particular step in a proc or a job

1.using cond parameter in step
2.using restart parameter
3.using cond parameter in job statement
4. Both B and C

If an application program accesses a base cluster in alternate key sequence, then DD statements are needed for which data sets? (f)
a) Base cluster
b) Alternate index
c) Path
d) a and b
e) a and c
f) a, b and c


Which of the following backs up data in CI mode? (b)
a) REPRO only
b) EXPORT only
c) Both REPRO and EXPORT
d) Neither REPRO nor EXPORT


What is SOC4 error stands for
A. Storage Violation error B. READING file that is not opened
C. Invalid address reference D. In all the above case
Key D


. How can unused space allocation be returned to the system when a dataset is closed ?
(A) RETURN
(B) RLSE
(C) CONTIG
(D) CLOSE
Key B


What is S322 abend?
A. Space not found in PDS
B. Operator cancelled the job
C. Time out Abend
D. Secondary request is not coded
Key C

8. JES2 allocates the data set
A. For all the steps before the job is scheduled
B. allocates of data set required by a step are done only just before the step executes
C. Both the case A & B are possible
D. None of the above
Key B



11. Given an input file with duplicates how to remove the duplicate records from the file using jcl

A.SUM FIELDS=(3,4,ZD)
B. SUM FIELDS=NONE
C. using ALLDUPS
D. Not possible

Key B


) Can an individual step be restricted from using all the job’s allowed CPU time ?
(1) Yes
(2) No
(3) Only in Catalogued Procedure
(4) Through the STEPTIME parameter


How can the disposition of sysout datasets be set for an entire jobstream ?
(1) SYSOUT parameter
(2) OUTPUT parameter
(3) DEFAULT parameter
(4) DEST keyword


19) What is the maximum length of a single line of JCL ?
(1) 71 bytes
(2) 60 bytes
(3) 55 bytes
(4 ) 80 bytes



21) Many JCL statements contain specific values designed to direct & control the execution of the statement. What are these fields called ?
(1) Linkage Variables
(2) Parameters
(3) Control Libraries
(4) Includes


26. How can return codes be tested before execution of a job step?
(1) Through the RC keyword
(2) Through the CODE keyword
(3) Through the COND keyword
(4) Through the RETURNCD keyword

27. How can values be passed from the job stream to an executable program?
(1) Through the PARM keyword
(2) Through the VALUE parameter
(3) Through the PGM parameter
(4) All of the above
35. How can a stopped job be started again? - JCL
(1) Through the RETURN parameter
(2) Through the STARTUP parameter
(3) Through the RESTART parameter
(4) Through the CHECKPNT keyword


35. What is the prefix character for symbolic parameter ?
(1) % (2) & (3) @ (4) {}


36. If both the JOBCAT & STEPCAT statements are coded in a step, which will be executed?
(1) JOBCAT
(2) STEPCAT
3. the one coded first in the JCL stream
(4) both the statements will be executed in sequence


How many instream procedures can be called within a single job? jcl




1)255
2)15
3)25
4)30




An instream procedure SAMPLE is coded in a jcl. A cataloged proc
SAMPLE is also available system library. When SAMPLE is invoked which
is invoked?


1)Instream Procedure.
2)Catalog Proc
3)Both will be ignored.
4)




If both JOBLIB and STEPLIB are coded in a job which one be executed?




1)JOBLIB
2)STEPLIB
3)PROCLIB
4)PROCLIB



When no MSGLEVEL parameter is coded then jcl




1)only i/p statements are printed.
2)Only i/p and proc statements
3)Only JOB statements is shown in the o/p.
4) Job, Input and output Allocation msg shown


Maximum number of DD statements in a job




1)3270 * step
2)255 *step
3)3273 * no of steps
4)3274



which parameter is to be given on the JOB statement to check the
syntax of a JCL?



1)TYPRUN=TEST
2)TYPRUN=SCAN
3)TYPRUN=HOLD
4)Both A & B


Two JOBS with name JOBNAME are submitted , then jcl




1)Both JOBS are cancelled by the operator.
2)Both JOBS wait in queue.
3)First runs while the 2nd waits in queue.
4)1st JOB is run and Second is cancelled.




Which one of the following is a positional parameter in EXEC statemen jcl




1)ACCT
2)PARM
3)PROC
4)COND




Is random access possible in esds?




1)Yes
2)No
3) Using RRN

4) Using Index key



What is Abend code S806 U0000?




1)Data exception.
2)Memory violation.
3)Load module not found.
4)duplicate dataset









If you code time in both job statement and exec which will overwrite
the other



1)Time specified in the job statment
2)Time specified in exec statement
3)it will give a jcl error
4)It will ignore both.



How many tracks for 15 cylinders




1)450 tracks
2)15 tracks
3)150 tracks
4)225 tracks

Which of the following is not a positional parameter ?




1)Accounting information.
2)Abnormal termination in DISP.
3)Record format in DCB.
4)Programmers name




If you code both symbolic and overriding parameters which will be
Executed?



1)Symbolic parameters.
2)Overriding parameters.
3)will give error.
4)None will be executed.



For which of the following sysprint is not neccessary




1)IEBGERNER
2)IEFBR14
3)SORT
4)ICETOOL

What is the return code of IEBCOMPR when both the datasets are not
equal?



1)0
2)4
3)8
4)12



For a New dataset which parameter is compulsary?




1)DISP
2)DCB
3)SPACE
4)VOLUME



Which of the following is not in REPRO command?




1)Replace.
2)Reuse.
3)Skip
4)readnext

What is the purpose of BLDINDEX?




1)To create a path
2)To create a alternate index.
3)To create a logical relation.
4)To load an Index.

How many RDF fields are there if the record format is variable?




1)One
2)Two
3)Three
4)Depends on records

How many times the seconday spaces is allocated for cylinders?




1)255
2)80
3)150
4)122



When you are dealing with variable length data set ie if RECFM=V then what will be the value of LRECL parameter?
A. Similar to RECFM=F option
B. LRECL option is not a mandatory
C. LRECL value is largest record in the file plus 4 bytes.
D. LRECL value smaller record plus 4 bytes

1. Can we use empty VSAM as input

1.No
2.Yes
3.Both
4. None of the above



Can we delete a data set using iefbr14 , iebgener

1.yes,both can delete the dataset
2.No,cannot delete dataset in iebgener
3.No,it is not possible on both the utilities
4. None of the above

Can I concatenate a ps file , pds member and a gdg . if so how.

1.No,only ps can be concatenated
2.No,GDG cannot be concatenated
3.yes,using iebgener utility
4. None of the above


What is the default value the region parameter will take.

1.0k/0m
2.1k
3.100k
4. 2K/2M



Name the system libraries from which modules are retrieved at execution.

1.SYS1.LINKLIB
2.ZOS.PROCLIB
3.Both from SYS1.LINKLIB and ZOS.PROCLIB
4. None of the above

how many types of libraries are there in jcl

1. Five
2. Two
3. Three
4. None



What are SD37 , SB37 and SE37 abends

1. Space abends
2. Job exceeds maximum wait time
3. Region problem
4. None of the above

How to pass the temp. data set from one step to another

1.using disp=shr parameter
2.using disp=old parameter
3.using disp=(new, pass) parameter
4. Not possible


Can you execute a proc from another proc [ nested procs. ]

1.No,nested procedures is not possible
2.Yes,can go for nested procedures
3.only procedure can be called by another procedure if the procedure is cataloged
4. both B and C


How is the keyword DUMMY interpreted by jcl

1. .Is coded on the DD statement to test the execution the program without reading or writing to a data set.
2.It is coded to omit the DD statements
3.It is coded to pass data to the program
4. both B and C



How is normal data set passed from one step to another

1. Using backward reference or using disp=shr
2. No,data set cannot be passed from one step to another
3. Only temporary data sets can be passed from one step to another
4. None of the above


How do you access a file that had a disposition keep

1.Indicates that the data set is to be retained or keep in DASD Volumes upon successful execution of the job
2.used to share the datasets over different steps
3.used to catalog the dataset
4. None of the above

VSAM processing options could be specified in (e)
a) Catalog
b) Program control blocks
c) JCL
d) None
e) All the above

Which of the following is/are not supported by COBOL? (d)
a) Skip-sequential processing
b) RBA addressing
c) Replacing existing record
d) a and b
e) a, b and c
f) a and c

An alternate index itself is which cluster type? (d)
a) LDS
b) RRDS
c) ESDS
d) KSDS
e) None

Which of the following requires a DELETE/DEFINE before the command can be used to restore an
existing data set? (a)
a) REPRO only
b) IMPORT only
c) Both REPRO and IMPORT
d) Neither REPRO nor IMPORT

6 comments:

Kaps said...

Again nice post. I use DFSORT a lot in my applications.

Its an IBM utility to sort and manipulate data pretty easily with writing any cobol code.

DFSORT tricks:
http://dfsort2008new.blogspot.com/

Thanks
-Kaps.

Anonymous said...

比基尼影片比基尼情人趣味比基尼正妹裸體比基尼泳裝美女照片比基尼泳裝美女裸體照比基尼漂亮的美女比基你辣妹氣象張雅婷主播水手服性交網水中sex波霸美女小遊戲波霸美女影片波霸聊天室泰國人妖情色自拍照片泳裝秀排行榜泳裝美女照片泳裝美女圖片泳裝美女寫真泳裝偷拍泳裝寫真洋妞美女圖洗澡無碼洪影城洪爺-論壇洪爺0951洪爺av洪爺洪爺的窩洪爺的色情小說泰國熟女性愛的影片波波波波波波成人電影波霸遊戲波霸自拍波霸裸體波霸辣妹波霸辣妹聊天室波霸大奶波霸影片波霸情色

Anonymous said...

Judge not a book by its cover...................................................

泰秋 said...

色情性愛片破解色情守門人成人色情電影院線上免費色情短片色情動畫影線上免費性愛小說甜心寶貝貼影區都都成人貼圖站都都成人網都都貼片區都都貼圖站都督成人貼圖都督情色網野求拳陰莖套陰道貼圖陰道遊戲最女優最性感美女遊戲最新av女優無碼都都成人貼片都都成人區都都成人往聊一夜情聊天,ut聊天男 聊天室聊天室男同志莉的遊戲處女免費小弟弟影片交流區 小弟弟影片區 貼圖區色情小遊戲

Padhma said...

Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..
Back to original

sandhosh said...

Good blog post which provided a interesting information.keep updating...
SEO Company in India
SEO Services in India
SEO Companies in India
SEO Company India
SEO Services India