INTERVIEW QUESTIONS - TOUGH

1> How do you access a file that has a disposition of KEEP???

Ans: Need to supply Volume serial no. VOL=SER=XXXX

2> What is tht diffrance between JES2 and JES3??

Ans: JES3 allocates datasets for all steps before the job is sheduled.
In JES2,allocation of datasets required by a step are done only just before the
step executes.

3> What PERFORM parameter in EXEC statement is meant for?

Ans: In os/390 installation, the system programmer defines several performance groups, which has specific performance characteristics like storage,speed etc. Now,each job class is associated with a default performance group. If one wants to override the default performance group associated with the class he can do it by this parameter- PERFORM=value in the JOB or EXEC stmt. When used in EXEC stmt only that step will be influenced by that performance group.

4> What is the work of initiator?

Ans: initiator is a special address register.

5> How to Execute from the second step in the PROC that is used in the JCL??

Ans: On jobcard using RESTART option specify PROCName.StepName you want to restart at.

6> How can I get the number of records of a sequential file without browsing it?

Ans: you can use tso command "COUNT" over sequential dataset to know the number of records in it with out browsing it.

7> 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?

Ans: If you are calling your sub pgm dynamically then DD stmt would be:
//SETP01 exec IGYWCL
//COBOL.SYSIN DD DSN= NAME OF PDS
(MAIN PROGRAM //LKED.SYSLMOD DD DSN= PDS NAME FOR LOAD MODULE//STEPLIB DD DSN=( NAME OF PDS WHICH CONTAINS THE LOAD MODULE OF SUB PGM) FOR STATIC CALL //STEP01 EXEC IGYWCL //COBOL.SYSIN DD DSN= NAME OF PDS(MAIN PROGRAM //LKED.SYSLMOD DD DSN= PDS NAME FOR LOAD MODULE//LKED.SYSLIB DD DSN=( NAME OF PDS WHICH CONTAINS THE LOAD MODULE OF SUB PGM)

8> Why we use export-import over repro??

Ans: There is much faster way to do the same:

- Use FAVER utility to take a back up (very fast). It will contain data as well as all definitions (base cluster, AIX, path, all parameters)

- XMIT dataset to hwre is has to go

- Use FAVER utility to restore it

Also, SORT utility is a faster tool to load VSAM than IDCAMS

9> What is difference between addressing mode and residential mode??

Ans: Addressing mode specifies the architecture used, ie 24 bit addressing mode or the 31 bit addressing mode,ie, Amode=24 or Amode=31.

The residential or Rmode is used to specify whether or not the job exists above or below the 16Mb line, ie, where it is resident.

10> Question How do you convert negative packed decimal number to positive PD using JCL?

Ans: JCL is not a programming language, it's a script language for executing programs and defining data that programs use. Write a COBOL program to multiply the negative numbers by -1. Then use JCL to execute the program.

Go back to INTERVIEW QUESTIONS!

Widget By Devils Workshop

About This Blog