Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DAILY QUIZ UPDATE
- NO QUESTION ANSWER
- 1 Carefully read the question and answer accordingly. Which of the following statement is true?
- Command SORT can be used to sort columns in ascending or descending order in a dataset.
- 2 Carefully read the question and answer accordingly. State TRUE or FALSE
- While creating the data set in 3.2 option, if I don’t give the dataset name in " " then the first qualifier will get added and the data set name will be as <USERID>.<USERID>.PS
- TRUE
- 3 Carefully read the question and answer accordingly. Which of the following is NOT a function of TSO subsystem?
- Online Job Functions
- 4 Carefully read the question and answer accordingly. Command used to search a string between 1 to 30 columns
- F 'string' 1,30
- 5 Carefully read the question and answer accordingly. State TRUE or FALSE
- It is possible to send a message to the mainframe user who has not logged on currently by using TSO command
- TRUE
- 6 Carefully read the question and answer accordingly. There is a command similar to Wordwrap (as in Notepad or MS WORD) in mainframe.
- TRUE
- 7 Carefully read the question and answer accordingly. What command should be used for auto saving the data?
- AUTOSAVE ON
- 8 Carefully read the question and answer accordingly. What is the maximum record length of a dataset that can be edited using ISPF Edit panel?
- 255
- 9 Carefully read the question and answer accordingly. Which TSO line command is used to change the color of the mainframes screen?
- COLOR
- 10 Carefully read the question and answer accordingly. Which of the folowing is used to purge a job?
- P as the line command for the required job
- 11 How do you display member list? Use M as the line command
- 12 Point and Shoot field is a feature by which one can place a cursor at it and press ENTER to perform the action. TRUE
- 13 If the command line position needs to be changed, which option should be used in the Primary Option Menu in ISPF? 1 or 11
- 14 In a dataset having 15 records, which TSO command will help in reaching line no 5 directly? LOCATE 5
- 15 It is possible to send a message to the mainframe user who has not logged on currently by using TSO command TRUE
- 16 Which of the following can be changed using Option 0 of ISPF/PDF primary option menu(ISPF PARMS)? Terminal type
- 17 What will happen in the backend when we do compress the data sets by using Z line command? The data set will be compressed to discard all old versions of data set members, to keep only the most recent version of all data set members - 1.0
- 18 What is the expansion of TSO/ISPF
- Time Sharing Option Interactive System Productivity Facility
- 19 What is the TSO block line Command to get convert all the uppercase alphabetic characters to lowercase
- Issue the block line command LCC
- 20 What is the command to display the current setting of the PF keys? PFSHOW
- (While working KEYS command worked)
- 21 Carefully read the question and answer accordingly. Which of the following option needs to be specified when a new dataset is allocated using 3.2 TSO/ISPF option? AVERAGE RECORD UNIT
- 22 For a dataset with 10,000
- lines, How to cut the first 10 lines and last 10 lines and
- paste into another dataset?
- First cut 10 lines, then issue CUT APPEND 2. Cut last 10 lines, then issue CUT APPEND 3. Issue PASTE
- 23 After exiting from the Primary Option Menu screen of the ISPF/PDF interface,the user sees the TSO “READY” prompt.
- Which is the most efficient way to restart the ISPF/PDF interface? The user executes the command “ISPF” or the command “PDF”.
- 24 How do you position a member name "TABLES" when the PDS "NH.CU.SA7INT.SOURCE" is opened in EDIT mode?
- Using LOCATE TABLES
- 25 What is the command to see someone else’s jobs in spool?
- By issuing PRE * enter and then issue OWNER <ownerid>
- 26
- Can we execute TSO commands in batch ?
- TRUE
- 27 How to compare one field position in input file against the field position in the output file.
- Go to Option 3.13 Issue COMPCOLN & COMPCOLO for Input & Output field positions
- 28 SuperC supports tape data sets.State True or False
- FALSE
- 29 Which command can be used to set the NUMBER mode on as well as renumber the sequence numbers in a datset ?
- RENUM
- 30 How can I get the column boundary definition line?
- Issue BOUNDS
- 31 Which of the following command that repeats the FIND to search next occurrence in a dataset?
- RFIND
- 32 FIND command is used to search string in a dataset. State True or False.
- TRUE
- 33 REN is used to renumber the data starting at 100 and incrementing by 100
- TRUE
- 34 Name the TSO command used to identify the TSO Region ( Development,
- Production, or other TSO regions) are currently logged in ? Issue SAREA in the command line
- 35 What is the command to rename an entire dataset?
- Type R against the dataset name and provide the new name
- 36 What command is issued on the command line of a dataset to show the language sensitive colours? HILITE
- 37 Which block command is used to delete the set of codes? DD
- 38 It is possible to cut more than one set of code snippet into clipboard TRUE
- 39 FINDALL is used only for search process statement and not for Compare process statement. State True or False. TRUE
- 40 What will "CHANGE ALL a b" do? It will change all the occurrences of a to b
- 41 How to Copy a SPOOL data(Job output) into my personal PDS ?
- XDC
- 42 Which command is used to restore the data set which get migrated?
- give HRECALL against the data set name
- 43 Which of the following cannot be processed by the SuperC program?
- Two VSAM ESDS datasets
- 44 What command is used to show the column numbers?
- COLS
- 45 In SuperC there is no limit on the size of files that can be processed in terms of lines, words or bytes. State True or False.
- TRUE
- 46 How to delete non-exculded records through one line command?
- DEL NX ALL
- 47 How to set the undo option for editing?
- use RECOVERY ON
- 48 Which command is used to search members with middle name conatins 'DEL' word in a PDS?
- Issue M /(*DEL*) against the PDS name.
- 49
- Carefully read the question and answer accordingly. What is the expansion of TSO/ISPF
- Time Sharing Option Interactive System Productivity Facility
- 50 Carefully read the question and answer accordingly. Function Key F12 divides the screen into two logical screens separated by a horizontal line. State True or False.
- False
- 51 Carefully read the question and answer accordingly. What is the command used to open a new screen in the mainframe?
- START <TSO option>
- 52 Carefully read the question and answer accordingly. What is the TSO command to convert Lower case to upper case in a dataset ?
- UC
- 53
- Carefully read the question and answer accordingly. What is the command to switch between ISPF screens?
- Swap
- 54 Carefully read the question and answer accordingly. Which of the following provides a variety of facilities that are useful for program development work?
- PDF
- 55 Carefully read the question and answer accordingly. What should be the SCROLL on the right side of the panel set to so that cursor advances by one page when PF7 or PF8 are used?
- PAGE
- 56
- Carefully read the question and answer accordingly. What is the command to display the current setting of the PF keys?
- PFSHOW
- 57
- Carefully read the question and answer accordingly. Which of the following are aliases for the COLUMNS command in ISPF Edit panel?
- COLS
- COL
- 58
- Carefully read the question and answer accordingly. What command is used to get rid of the 4 to 5 message lines displayed at the beginning of the file in ISPF edit?
- RES
- 59 Carefully read the question and answer accordingly. How many screens can be opened in ISPF panel at the max in direct screen without split?
- 8
- 60
- Carefully read the question and answer accordingly. How to identify which user is currently using the member , when we get "member in use" message ?
- Press F1 key twice againt the member
- 61
- Carefully read the question and answer accordingly. Which of the following space parameter needs to be specified during the allocation of a partitioned dataset?
- PRIMARY QUANTITY
- 62 Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL?
- All of the listed options
- 63
- Carefully read the question and answer accordingly. For the below IEBCOPY utility, dataset mentioned in IN6 DD contains 'A' to 'Z' PDS members.
- What parameter needs to be used to copy all the members except B,R,Z members into OUT1 dataset?
- //COPY JOB ...
- //JOBSTEP EXEC PGM=IEBCOPY
- //SYSPRINT DD SYSOUT=A
- //OUT1 DD DSNAME=DATASET1,UNIT=disk,VOL=SER=111112,
- // DISP=(OLD,KEEP)
- //IN6 DD DSNAME=DATASET6,UNIT=disk,VOL=SER=111115,
- // DISP=OLD
- //SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(1))
- //SYSUT4 DD UNIT=SYSDA,SPACE=(TRK,(1))
- //SYSIN DD *
- COPYOPER COPY OUTDD=OUT1
- INDD=IN6
- /* EXCLUDE MEMBER=(B,R,Z)
- 64 Carefully read the question and answer accordingly. The keyword used in SORT to overwrite the input record content
- OVERLAY
- 65 Carefully read the question and answer accordingly. Consider the below JCL and choose the output after the execution.
- //STEP01 EXEC PGM=IEFBR14
- //CREATEPS DD SPACE=(TRK,(1,1),RLSE),
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
- Temporary dataset will be created and deleted
- 66 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=EVEN
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),EVEN)
- Whether STEP03 will execute ?
- T
- 67 Carefully read the question and answer accordingly. What would be the correct Sysin card to copy the records into a key sequential dataset using IDCAMS utility?
- //REPRO1 JOB ... //STEP1 EXEC PGM=IDCAMS //INDSET1 DD DSNAME=ISAMDSET,DISP=OLD, // DCB=(DSORG=IS,BUFNO=6) //SYSPRINT DD SYSOUT=A //SYSIN DD * REPRO - INFILE(INDSET1) - OUTDATASET(D40.EXAMPLE.KSDS1) /*
- 68
- Carefully read the question and answer accordingly. Which DFSORT command is used to write the deleted records in a data set defined?
- XSUM
- 69 carefully read the question and answer accordingly. Which of the following SORT parameter is used to compare two files?
- Joinkeys
- 70 Carefully read the question and answer accordingly. Consider the below SORT Jcl and choose the correct purpose of it.
- //SYSIN DD *
- SORT FIELDS=COPY,STOPAFT=100
- OUTREC FIELDS=(1:8,3,10:60,8,69:X)
- /*
- //
- The sorted output file will be copied first 100 records from input file and SPACES at 69th position.
- 71 Carefully read the question and answer accordingly. The IBM utility used extensively to manage VSAM datasets
- IDCAMS
- 72 Carefully read the question and answer accordingly. Which of the following are valid GDG creation?
- //STEP1 EXEC PGM=IDCAMS //SYSIN DD * //SYSPRINT DD SYSOUT=* DEFINE GENERATIONDATAGROUP - (NAME(SYS02.MYDATA.BASE) - LIMIT(200) - OWNER(P3SUN00) NOSCRATCH NOEMPTY) //
- 73 Carefully read the question and answer accordingly. What is the full form of GDG? Generation Data Groups
- 74 Carefully read the question and answer accordingly. State True or False. Consider the below scenario.
- //STEP1 EXEC PGM=PGM1
- //DD1 DD DSN=USERID.FILE1(+1),DISP=(NEW,CATLG),SPACE=(TRK,(100,10))
- //STEP2 EXEC PGM=PGM1
- //DD1 DD DSN=USERID.FILE1(+0),DISP=(OLD)
- If a (+1) generation dataset is created in the first step of a job, it can be referenced in later steps of the same Job as (+0).
- False
- 75 Carefully read the question and answer accordingly. The GDG "MYID.TEST.LIB" has been created with NOEMPTY SCRATCH as sub parameters and this needs to be changed to EMPTY NOSCRATCH.
- Which code snippet will do this?
- //MYJOB JOB (AS123), 'SHARMI' //STEP01 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //SYSIN DD * ALTER MYID.TEST.LIB EMPTY NOSCRATCH /* //
- 76 Carefully read the question and answer accordingly. If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed 4094
- 77 Carefully read the question and answer accordingly. Select the appropriate option with respect to ABEND? All of the above
- 78 Carefully read the question and answer accordingly. Consider the following JCL:
- //STEP010 EXEC PGM=CREATGDG
- //SYSOUT DD SYSOUT=&UTLMSG
- //SYSPRINT DD SYSOUT=&UTLMSG
- //SYSUDUMP DD SYSOUT=&DUMP
- //*
- //I06M430F DD DSN=GDGFILE.GDG(+1),
- // DISP=(NEW,CATLG,DELETE),
- // UNIT=SYSDA,
- // SPACE=(TRK,(15,15),RLSE),
- // DCB=(RECFM=FB,LRECL=501,BLKSIZE=0)
- //**** REPRO *****
- //STEP020 EXEC PGM=IDCAMS,COND=(0,NE)
- //SYSUDUMP DD SYSOUT=D
- //SYSPRINT DD SYSOUT=*
- //*
- //INDD1 DD DSN=GDGFILE.GDG(?),
- // DISP=SHR
- //OUTDD1 DD DSN=NEWGDG.FILE(+1),
- // DISP=(NEW,CATLG,DELETE),
- // UNIT=SYSDA,
- // SPACE=(TRK,(15,15),RLSE),
- // DCB=(MODELGDG,RECFM=FB,LRECL=501,BLKSIZE=0)
- How will you do the version referencing for GDGFILE.GDG in STEP020 considering that the need is to copy the created GDG version in STEP010?
- No answer was there
- In result
- 79 Carefully read the question and answer accordingly. How many number of generations can be held in a GDG? 255
- 80 Carefully read the question and answer accordingly. Which "system abend" will occur when there is a insufficient space in disk? SB37 Abend
- 81
- Carefully read the question and answer accordingly. ABEND Code for Time out
- S322
- 82 Consider the below JCL and choose the output after the execution.
- //STEP01 EXEC PGM=IEFBR14
- //CREATEPS DD SPACE=(TRK,(1,1),RLSE),
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
- Temporary dataset will be created and deleted
- 83 What is the key word to be used while copying VB file to FB using SORT
- VTOF
- 84 One IDCAMS JCL step comprises a Delete cluster, Define cluster, REPRO. When it is compiled, it returns a RC 8 for delete, RC 0 for Define and RC 4 for REPRO. Which RC will be notified to the User?
- 8
- 85 What is the offset starting position for Variable-length records in SORT ?
- Starting byte + 4
- 86 The IBM utility that could be used as dummy program
- IEFBR14
- 87 Which DFSORT command is used to specify the number of records to be skipped before sorting or copying begins?
- SKIPREC
- 88 It is possible to add sequence number using SORT
- T
- 89 what is the maximum number of datasets can be used in SORTIN statement for merge operation ?
- 16
- 90 //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),(0,LE,STEP01),(4,LT))
- Consider if the STEP01 executes to give return code as 0.
- Whether the STEP03 will bypass ?
- T
- 91 Consider a scenario where the below file doesnt exist, what will happen after the execution of the step in JCL ?
- //STEP01 EXEC PGM=IEFBR14
- //CREATEPS DD DSN=TCHN670.TEMP,DISP=MOD,SPACE=(TRK,(1,1),RLSE),
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
- TCHN670.TEMP will be created and deleted
- 92 The IBM utility used extensively to manage VSAM datasets IDCAMS
- 93 What is the key word to be used while copying VB file to FB using SORT VTOF
- 94 Which of the following SORT parameter is used to compare two files? JOINKEYS
- 95 What command to be used to control the sequece number increment in SORT utility INCR
- 96 IEBCOPY utility is used to copy a physical sequential dataset. T
- 97 Carefully read the question and answer accordingly. If a JOB, having multiple steps, has to execute the final IEFBR14 step regardless of whether the previous steps successfully execute or not, which of the following EXEC statement should be used in the final step?
- //LASTSTEP EXEC PGM=IEFBR14,COND=EVEN
- 98 Carefully read the question and answer accordingly. Consider the code snippet below: //STEP1 EXEC PGM = IDCAMS
- // SYSIN DD *
- DEFINE GDG (NAME(MY.GDG.BASE) LIMIT(3) SCRATCH )
- /*
- Which of the following statements is True?
- If the GDG 'MY.GDG.BASE' is uncatalogued, then it is deleted physically.
- 99 Carefully read the question and answer accordingly. What would be the correct Sysin card to copy the records into a key sequential dataset using IDCAMS utility?
- //REPRO1 JOB ... //STEP1 EXEC PGM=IDCAMS //INDSET1 DD DSNAME=ISAMDSET,DISP=OLD, // DCB=(DSORG=IS,BUFNO=6) //SYSPRINT DD SYSOUT=A //SYSIN DD * REPRO - INFILE(INDSET1) - OUTDATASET(D40.EXAMPLE.KSDS1) /*
- 100 Carefully read the question and answer accordingly. Which of the following example is correct for concatenating datasets?
- //FILEIN DD DSNAME=FILE1.TST.DATA, DISP=SHR // DD DSNAME=FILE2.TST.DATA, DISP=SHR
- 101 Carefully read the question and answer accordingly. Which parameter coded to omit first 1000 records using REPRO command ?
- SKIP(1000)
- 102 Carefully read the question and answer accordingly. Which parameter should be coded to copy first 5 records from RRDS file to KSDS file using REPRO command ? FROMNUMBER(1) TONUMBER(5)
- 103 Carefully read the question and answer accordingly. Purpose of DUMP default parameter coded in PRINT command ? It specifies that each byte in the logical record is to be printed in both hexa decimal and character format
- 104 Carefully read the question and answer accordingly. What is the significane of REUSE parameter in REPRO ?
- REUSE option in REPRO deletes records in output file and copy new records from input file. This replace can happen only when output file is defined with REUSE option
- 105 Carefully read the question and answer accordingly. Which parameter in IDCAMS ALTER is used to set the dataset read-only? INHIBIT
- 106 Carefully read the question and answer accordingly. Which of the following statement about IDCAMS commands are correct ?
- PRINT prints the dataset contents.
- 107 Carefully read the question and answer accordingly. What is the usage of UPGRADE parameter while defining alternate index ? State TRUE or FALSE. UPGRADE specifies whether an alternate index is updated when there is an update to the base cluster.
- 108 Carefully read the question and answer accordingly. What is the default parameter in PRINT command ?
- DUMP
- 109 Carefully read the question and answer accordingly. The purpose of VERIFY command is to re-sync the end of file info with the catalog info ? T
- 110 Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: The BLDINDEX command always involves a sorting operation.
- Statement 2: Before BLDINDEX command is used, the base cluster must be loaded with data.
- Which of the following is applicable for above?
- Statement 1 and 2 both are true
- 111 Carefully read the question and answer accordingly. Which option specified to Delete a VSAM non-empty clusters. FORCE
- 112 Carefully read the question and answer accordingly. Consider the below VSAM control statements. Choose the correct option.
- DEFINE CLUSTER(NAME(USERID.VSAM.FILE) -
- VOLUME(TCHN01) -
- TRACKS(1 1) -
- CISZ(4096) -
- RECORDSIZE (80,80) -
- LINEAR -
- )
- Record size cannnot be specified.
- 113 Carefully read the question and answer accordingly. What is MODEL parameter in Define VSAM cluster ?
- MODEL parameter is used to specify an existing cluster from which the attributes used to define the new cluster should be copied
- 114 Carefully read the question and answer accordingly. Which option specified to Delete the associated entry for the object to be removed from the Volume Table of Contents. SCRATCH
- 115 Carefully read the question and answer accordingly. What is the use of the PATH command?
- The PATH is used to access a record in base cluster by means of an ALTERNATEINDEX
- 116 Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: REPRO command can be used in case a VSAM KSDS dataset becomes unusable
- Statement 2: EXAMINE command is used to inspect and report structural errors within VSAM datasets
- Which of the following is applicable for the above?
- Statement 1 is false and 2 is true
- 117 Carefully read the question and answer accordingly. By considering the below code snippet, select the appropriate answer in the perspect of syntax in INFILE & OUTFILE
- //IDCAMCOP EXEC PGM=IDCAMS
- //SYSPRINT DD SYSOUT=*
- //FILEINP DD DSN=MYID.INPUT,DISP=SHR
- //FILEOUP DD DSN=MYID.TEST.KSDS,DISP=SHR
- //SYSIN DD *
- REPRO INFILE(MYID.INPUT) OUTFILE(MYID.TEST.KSDS)
- /*
- Only DD names should be given while using INFILE & OUTFILE
- 118 Carefully read the question and answer accordingly. The VERIFY command can be used on Base Cluster Alternate Index
- 119 Carefully read the question and answer accordingly. State True or False.
- Records can be copied from VSAM file to PS file using REPRO command.
- True
- 120 Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: The BLDINDEX command always involves a sorting operation.
- Statement 2: Before BLDINDEX command is used, the base cluster must be loaded with data.
- Which of the following is applicable for above?
- Statement 1 and 2 both are true
- 121 Carefully read the question and answer accordingly. Which of the following is NOT a valid feature of ISPF?
- Provides an environment for interactive software project management
- Carefully read the question and answer accordingly. TSO is a subsystem that runs on the Mainframe operating system like MVS.
- State True or False.
- True
- Carefully read the question and answer accordingly. Which of the following option needs to be specified when a new dataset is allocated using 3.2 TSO/ISPF option?
- AVERAGE RECORD UNIT
- Carefully read the question and answer accordingly. What is the TSO command to convert Lower case to upper case in a dataset ?
- Uc
- Carefully read the question and answer accordingly. Which of the following are aliases for the COLUMNS command in ISPF Edit panel?
- COLS
- COL
- Carefully read the question and answer accordingly. How can you display and edit the CLIP board content after issue of CUT command?
- Use CUT DISPLAY
- Carefully read the question and answer accordingly. Which of the following statement is true? Command SORT can be used to sort columns in ascending or descending order in a dataset.
- Carefully read the question and answer accordingly. What is the command to switch between ISPF screens?
- SWAP
- Carefully read the question and answer accordingly. Which of the following can be changed using Option 0 of ISPF/PDF primary option menu(ISPF PARMS)?
- Terminal type
- Carefully read the question and answer accordingly. What is the command to display the current setting of the PF keys?
- PFSHOW
- Carefully read the question and answer accordingly. Which of the following will identify the hexadecimal characters in a dataset? FIND X'0980312'
- Carefully read the question and answer accordingly. Which block command is used to delete the set of codes?
- DD
- Carefully read the question and answer accordingly. What is the command to rename an entire dataset?
- Type R against the dataset name and provide the new name
- Carefully read the question and answer accordingly. Which of the following is the statement that copies a member of the library into the member being edited?
- COPY member {AFTER } lptr [linenum-range] {BEFORE}
- Carefully read the question and answer accordingly. Name the TSO command used to identify the TSO Region ( Development,
- Production, or other TSO regions) are currently logged in ?
- Issue SAREA in the command line
- Carefully read the question and answer accordingly. The command/option to find the last 10 datasets that I have accessed ?
- Option REFLIST in menu bar
- Carefully read the question and answer accordingly. How to keep the command in the command line without doing re-type the same command after its execution? Issue command in the command line along with prefix of '&'
- Carefully read the question and answer accordingly. Which of the following cannot be processed by the SuperC program?
- Two VSAM ESDS datasets
- Carefully read the question and answer accordingly. Name the command used to do a wordwrap of 80 characters per line in Mainframe ?
- Issue TF80 command in the line where to do a wordwrap
- Carefully read the question and answer accordingly. Which is the text handling command which allows a text line to be split at the cursor to allow insertion ?
- TS
- Carefully read the question and answer accordingly. Which of the following IBM utility is used to copy a sequential dataset?
- IEBEDIT
- Carefully read the question and answer accordingly. what is the maximum number of datasets can be used in SORTIN statement for merge operation ?
- 16
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
- Which are all the steps will get bypassed ?
- STEP02 and STEP03
- Carefully read the question and answer accordingly. Consider a scenario where the below file doesnt exist, what will happen after the execution of the step in JCL ?
- //STEP01 EXEC PGM=IEFBR14
- //CREATEPS DD DSN=TCHN670.TEMP,DISP=MOD,SPACE=(TRK,(1,1),RLSE),
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
- TCHN670.TEMP will be created and deleted.
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=EVEN
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),EVEN)
- Whether STEP03 will execute ?
- T
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,NE),(0,LT))
- Which STEPS will get executed ?
- STEP01 and STEP03
- Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL? All of the listed options
- Carefully read the question and answer accordingly. In a JCL , a GDG version is created as follows.
- //STEP01 EXEC PGM=SORT
- ….
- //SORTOUT DD DSN=TEST.OUTFILE(+1),DISP=(NEW,CATLG,DELETE)
- How will it be referred as input in the next step of the same JCL?
- TEST.OUTFILE(+1)
- Carefully read the question and answer accordingly. Sate True or False.
- IEBCOPY utility is used to copy a physical sequential dataset.
- T
- Carefully read the question and answer accordingly. Consider the below sort card and choose the correct option.
- SORT FIELDS=(1,3,ZD,A)
- SUM FIELDS=(1,3,ZD)
- Cannot Sum sort keys.
- Carefully read the question and answer accordingly. Is it possible to concatenate datasets having different Block size ?
- T
- Carefully read the question and answer accordingly. What is the prefix character for symbolic parameter
- &
- Carefully read the question and answer accordingly. Sample Code
- //A PROC
- //AS1 EXEC PGM=A124
- //AIN DD DSN=SAMPLE.DATA,DISP=SHR
- //AOUT DD DSN=TEST.SAMPLE,UNIT=SYSDA,
- // SPACE=(CYL,(5,1)),DISP=(NEW,CATLG,DELETE),
- // DCB=(RECFM=FB,LRECL=80,DSORG=PS)
- //AS2 EXEC PGM=ABC
- // PEND
- //JOB1 JOB
- //STEP1 EXEC PROC=A
- //STEP2 EXEC PGM=JKL
- What would you add to STEP1 of JOB1 which calls the above procedure to change the dataset of AOUT in procedure A from a disk to a tape dataset?
- //AS1.AOUT DD UNIT=TAPE
- Carefully read the question and answer accordingly. Which restart command is used to disallows automated restart and checkpoint processing?
- RD=NC
- Carefully read the question and answer accordingly. Which code snippet is correct to have the below requirement?
- The output file should be included only for the records, which amount is greater than 10000 & sorted in ascending order based on the first 10 characters
- //STEP01 EXEC PGM=SORT //SORTIN DD DSN=MYID.TEST.INPUT,DISP=SHR //SORTOUT DD DSN=MYID.TEST.OUTPUT,DISP=(NEW,CATLG), // SPACE=(TRK,(1,1)), // DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,10,CH,A) INCLUDE COND=(40,8,ZD,GT,10000) /*
- Carefully read the question and answer accordingly. Block size for DASD files must be defined as ?
- BLKSIZE=0
- Carefully read the question and answer accordingly. What is the expansion of JCL and MVS?
- Job Control Language Multiple Virtual Storage
- Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
- //STEP010 EXEC PGM=PGM1, COND=(0,GT)
- // EXEC PROCNAME, COND.STEP010=(0,LE)
- Carefully read the question and answer accordingly. Which statement is used to provide PARM parameters for a DB2 program?
- SYSTSIN card
- Carefully read the question and answer accordingly. Comment statement need to start with
- //*
- Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
- ALTER command
- Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
- ALTER command
- Carefully read the question and answer accordingly. What condition should be applied so that the step executes even if the previous step terminates abnormally? COND=EVEN
- Carefully read the question and answer accordingly. Which of the following will delete all the generations of GDG USERID.GDG.BASE keeping the GDG base?
- //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=USERID.GDG.BASE,DISP=(SHR,DELETE,KEEP)
- Carefully read the question and answer accordingly. What condition should be applied so that the step executes even if the previous step terminates abnormally COND=EVEN
- Carefully read the question and answer accordingly. If we have a data set containing 10,000 fixed blocked records with LRECL=100. What is the space required for the above blksize ?
- Blocks needed = 10,000/(4096/100)
- Carefully read the question and answer accordingly. If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed
- 4094
- Carefully read the question and answer accordingly. Which "system abend" will occur when there is a insufficient space in disk?
- SB37 Abend
- Carefully read the question and answer accordingly. What are all the basic JES2 statements below?
- /*NOTIFY /*PRIORITY
- Carefully read the question and answer accordingly. Consider the following JCL.
- //MYJOB JOB(P,U202,SH1),'VIJAY N',CLASS=A
- //STEP1 EXEC PGM=PROGRAM1
- //STEPLIB DD DSNAME=LIB1.TEST1.LOADLIB,DISP-SHR
- //SYSOUT DD SYSOUT=A
- //FILEIN DD DSNAME=FILE1.TST1.DATA, DISP=SHR
- //STEP2 EXEC PGM=PROGRAM2
- //STEPLIB DD DSNAME=LIB1.TEST1.LOADLIB,DISP-SHR
- //SYSOUT DD SYSOUT=A
- //FILEIN DD DSNAME=FILE2.TST.DATA, DISP=SHR
- If the above job fails while executing STEP2, which of the following changed jobcards executes the job again, beginning in that step?
- //MYJOB JOB(P,U202,SH1),'VIJAY N',CLASS=A,RESTART=STEP2
- Carefully read the question and answer accordingly. Select the types of datasets provided by Virtual Storage Access Methods VSAM?
- All of the listed above
- Carefully read the question and answer accordingly. What is REPLICATE parameter in Define VSAM cluster ?
- REPLICATE specifies that VSAM should write each index record on a track as many times as it will fit.
- Carefully read the question and answer accordingly. Is it possible to REWRITE and DELETE a record in ESDS file ?
- REWRITE is possible but DELETE is not allowed
- Carefully read the question and answer accordingly. Control Interval contains
- Records free space
- Control interval definition field(CIDF)
- and Record definition field(RDF).
- Which component is an "optional" one in the listed above?
- Records free space
- Carefully read the question and answer accordingly. Which option specified to Delete a specific VSAM objects (SPACE, USERCATALOG, GDG) even though they may be non-empty.
- FORCE
- Carefully read the question and answer accordingly. What is the range of value is allowed to set the MAXCC in the job?
- 0 to 16
- Carefully read the question and answer accordingly. Is the Syntax Freespace(CA%,CI%) correct for defining the VSAM cluster ?
- F
- Carefully read the question and answer accordingly. What are the ranges of CISZ (Control Interval size) specified while creating a KSDS VSAM cluster ?
- The specified CISZ size must be 512, 1,024, 2,048, or 4,096.
- Carefully read the question and answer accordingly. What is the VSAM file status code to notify "End of file encountered"?
- 10
- Carefully read the question and answer accordingly. State True or False
- File Manager is a tool whic is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing and other file related operations
- T
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: REPRO command can be used in case a VSAM KSDS dataset becomes unusable
- Statement 2: EXAMINE command is used to inspect and report structural errors within VSAM datasets
- Which of the following is applicable for the above?
- Statement 1 is false and 2 is true
- Carefully read the question and answer accordingly. State True or False
- Path is acting as a logical connection between the base cluster and the Alternate Index
- T
- Carefully read the question and answer accordingly. Which of the following is contained in the index component of a VSAM dataset?
- Record Key and record location number
- Carefully read the question and answer accordingly. Is DELETE command in VSAM deletes the clusters which has retention period that has not expired.
- F
- Carefully read the question and answer accordingly. What is the use of the PATH command?
- The PATH is used to access a record in base cluster by means of an ALTERNATEINDEX
- Carefully read the question and answer accordingly. What does ERASE parameter in DEFINE CLUSTER command do? It overwrites the data component with binary zeros
- Carefully read the question and answer accordingly. State True or False.
- Records can be copied from VSAM file to PS file using REPRO command.
- T
- Carefully read the question and answer accordingly. State TRUE or FALSE.
- Is it possible to delete non-vsam dataset using IDCAMS utiltity ?
- T
- Carefully read the question and answer accordingly. How to copy records in a VSAM file to a non-VSAM file ?
- REPRO
- Carefully read the question and answer accordingly. What will happen if a file 'EMP-ADDRESS-DETAILS' is referred to as 'EMP-ADRESS-DETAILS' in the program?
- It should throw the error message 'EMP-ADDRESS-DETAILS was not defined as a file-name'
- Carefully read the question and answer accordingly. What happens when EXIT PROGRAM is coded in the Main Program?
- Results in 4038 abend.
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- FILE-CONTROL.
- SELECT EMP-FILE ASSIGN TO DISK
- ORGANIZATION IS INDEXED
- ACCESS MODE IS DYNAMIC.
- There is one error in the above code. Choose the error statement from the following options.
- RECORD KEY clause must be specified for an indexed sequential file.
- Carefully read the question and answer accordingly. Consider the following declaration in the File section of a program.
- 05 CALENDAR-DATE PIC X(6).
- 10 CALENDAR-DD PIC 99.
- 10 CALENDAR-MM PIC 99.
- 10 CALENDAR-YY PIC 99.
- Which of the following statements is true about the declarations?
- Incorrect, since PIC clause cannot be specified for a group item
- Carefully read the question and answer accordingly. Match the Following and choose the right option
- 1. SOC1- a) Data Exception
- 2. SOC4- b) Divide by Zero Exception
- 3. SOC7- c) Address Exception
- 4. SOCB- d) Operation Exception
- 1 - d
- 2 - c
- 3 - a
- 4 – b
- Carefully read the question and answer accordingly. Which of the following files can be opened in all the 4 modes?
- Sequential
- Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
- OPEN in I-O mode and REWRITE
- Carefully read the question and answer accordingly. SORT RAFFLE_FILE
- ON ASCENDING KEY IBM-MAIN Y2K-MAIN
- USING INPUT-FILE GIVING OUTPUT-FILE.
- Which one the following is true.
- IBM-MAIN is the major key and Y2K-MAIN is the minor key.
- Carefully read the question and answer accordingly. There is a file whose ORGANIZATION is INDEXED. You want to read records from the file in random fashion as well as sequentially.
- Which of the following access mode would you specify?
- DYNAMIC
- Carefully read the question and answer accordingly. List down the modes which are used to open the files for writing? EXTEND OUTPUT
- Carefully read the question and answer accordingly. The following are Data division entries
- 01 S PIC 9(2) VALUE IS 50
- 01 T PIC 9(3) VALUE IS 950
- The following is the procedure Division statement
- ADD S TO T ON SIZE ERROR DISPLAY 'ON SIZE ERROR'
- DISPLAY 'T' T
- What is the value of B when it is displayed?
- 100
- Carefully read the question and answer accordingly. Say whether the following is True or False MARKS GRADE 80-100 A, 80-101 B, 80-102 C
- EVALUATE MARKS
- WHEN 80 THRU 100
- MOVE "A" TO GRADE
- WHEN 80 THRU 101
- MOVE "B" TO GRADE
- WHEN 80 THRU 102
- MOVE "C" TO GRADE
- END-EVALUATE
- T
- Carefully read the question and answer accordingly. How many bytes of storage are required to hold emp-sal-rec which
- is defined as follows.
- 01 emp-sal-rec.
- 05 sal-history occurs 12 times.
- 10 sal pic 9(4)v99.
- 10 months pic z9.
- 10 deductions occurs 5 times pic 9(3)v99.
- 396
- Carefully read the question and answer accordingly. •Three data-names var1, var2 and var3 have the following WORKING-STORAGE data descriptions:
- 01 var1 PIC 99V999.
- 01 var2 PIC 9(4)V999.
- 01 var3 PIC 9(4)V99.
- If the following statement is executed with the values 10.261, 991.724 and 20.0 in var1, var2 and var3 respectively, the resulting what will be the value of var3
- ADD var1, var2 GIVING var3 ROUNDED ON SIZE ERROR, MOVE ZERO TO VAR3
- 1001.99
- Carefully read the question and answer accordingly. consider the following piece of code
- 01 GROSS-PAY
- 05 BASIC-PAY PIC 9(5)
- 05 ALLOWENCES PIC 9(3)
- if BASIC-PAY has a value 1000 and ALLOWENCES has a value
- of 250,what will be
- displayed by the statement
- DISPLAY GROSS-PAY
- a.1250
- b.01000250
- c.01250
- d.1.250
- 01000250
- Carefully read the question and answer accordingly. State true or False
- The POINTER in string handling is used to start a control in a position other than 1.
- T
- Carefully read the question and answer accordingly. What will be the counter value after executing the below code
- WORKING-STORAGE SECTION.
- 01 WS-STRING PIC X(10) VALUE 'MAMMAMCAMM'.
- 01 WS-CTR PIC 9(02) VALUE 0.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- INSPECT WS-STRING TALLYING WS-CTR FOR CHARACTERS BEFORE
- INITIAL 'C'.
- DISPLAY 'WS-CTR :' WS-CTR.
- WS-CTR :06
- Carefully read the question and answer accordingly. Four data-names DATA-1, DATA-2, DATA-3 and
- DATA-4 are defined as following
- Data-name PIC clause Value Initialized to
- DATA-1 999 015
- DATA-2 999 005
- DATA-3 999 000
- DATA-4 999 000
- On executing the PROCEDURE DIVISION statement
- DIVIDE DATA-1 INTO DATA-2 GIVING DATA-3
- REMAINDER DATA-4
- These data-names will respectively assume values:
- 15,5,0,5
- Carefully read the question and answer accordingly. Consider the below code snippet.
- 01 WS-ITEM.
- 05 WS-TOTAL PIC 9(5) VALUE SPACES.
- 05 WS-NET PIC 9(10) VALUE ZEROES.
- 05 WS-GROSS PIC 9(20) VALUE ZEROES.
- ..
- COMPUTE WS-GROSS = (WS-NET - WS-TOTAL)
- The code is syntatically incorrect.
- Carefully read the question and answer accordingly. IF NOT AGE LESS THAN 30 AND 40
- GO TO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLE.
- If AGE is greater than or equal to 30 but less than 40.
- Carefully read the question and answer accordingly. Which of the following command that repeats the FIND to search next occurrence in a dataset?
- RFIND
- Carefully read the question and answer accordingly. Which of the following cannot be processed by the SuperC program?
- Two VSAM ESDS datasets
- Carefully read the question and answer accordingly. FINDALL is used only for search process statement and not for Compare process statement. State True or False.
- TRUE
- Carefully read the question and answer accordingly. How to find out the record length using tso command?
- Issue TSO command LISTDS
- Carefully read the question and answer accordingly. FIND command is used to search string in a dataset. State True or False.
- T
- Carefully read the question and answer accordingly. Name the TSO command used to identify the TSO Region ( Development,
- Production, or other TSO regions) are currently logged in ?
- Issue SAREA in the command line
- Carefully read the question and answer accordingly. what is the equalant key function for command RFIND
- PF5
- Carefully read the question and answer accordingly. What is the command to see someone else’s jobs in spool?
- By issuing PRE * enter and then issue OWNER <ownerid>
- Carefully read the question and answer accordingly. How to copy data from one dataset to another dataset?
- Type CC as the line command for the first and last lines of the desired set of lines, issue CUT in the command line and issue PASTE in the command line of the other dataset
- Carefully read the question and answer accordingly. Which of the following will identify the hexadecimal characters in a dataset?
- FIND X'0980312'
- Carefully read the question and answer accordingly. Consider the below scenario.
- //STEP10 EXEC PGM=IDCAMS
- //SYSIN DD *
- DELETE (GDGNAME) GDG FORCE
- /*
- //
- What will be output after the execution ?
- Delete the GDG index, model and all related GDG's from system catalogs.
- Carefully read the question and answer accordingly. The IBM utility used extensively to manage VSAM datasets
- IDCAMS
- Carefully read the question and answer accordingly. Which DFSORT command is used to specify the number of records to be skipped before sorting or copying begins?
- SKIPREC
- Carefully read the question and answer accordingly. Sate True or False.
- IEBCOPY utility is used to copy a physical sequential dataset.
- T
- Carefully read the question and answer accordingly. The IBM utility that could be used as dummy program IEFBR14
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
- Which are all the steps will get bypassed ?
- STEP02 and STEP03
- Carefully read the question and answer accordingly. If a JOB, having multiple steps, has to execute the final IEFBR14 step regardless of whether the previous steps successfully execute or not, which of the following EXEC statement should be used in the final step? //LASTSTEP EXEC PGM=IEFBR14,COND=EVEN
- Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL? All of the listed options
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,NE),(0,LT))
- Which STEPS will get executed ?
- STEP01 and STEP03
- Carefully read the question and answer accordingly. The keyword used in SORT to overwrite the input record content OVERLAY
- Carefully read the question and answer accordingly. With respect to JCL statements, which of the following is not allowed in PROCs?
- All of the listed options
- Carefully read the question and answer accordingly. Consider Space= (27998,(20000,1000),RLSE, CONTIG). It requests that primary space be allocated on contiguous cylinders and tracks.State True or False
- TRUE
- Carefully read the question and answer accordingly. If RESTART parameter is coded, it needs to be coded in JOBCARD
- T
- Carefully read the question and answer accordingly. What are all the record formats can be accepted in JCL for RECFM parameter?
- F,FB,V,VB,U
- Carefully read the question and answer accordingly. Which of the following type of statements cannot be coded with Comments?
- JES2 control statements
- Carefully read the question and answer accordingly. What abend occurs when the Job exceeds the Time limit specified? S322
- Carefully read the question and answer accordingly. Which of the following is true with respect to JCL symbols?
- All of the listed options
- Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
- //STEP010 EXEC PGM=PGM1, COND=(0,GT)
- // EXEC PROCNAME, COND.STEP010=(0,LE)
- Carefully read the question and answer accordingly. JCL procedures can be retrieved from the following.
- 1. From Private library
- 2. From the input stream
- 3. From the system library
- What is the order in which system searches for a JCL procedure?
- In the order of 2,1, and 3
- Carefully read the question and answer accordingly. The invalid 'Status' value for DISP parameter
- CATLG
- Carefully read the question and answer accordingly. What is stands for G0001 and V00 in the below GDG file
- "MYID.LIB.TEST.G0001V00"
- G0001 is the Generation number V00 is the Version Number
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=EVEN
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
- Whether STEP03 will execute ?
- F
- Carefully read the question and answer accordingly. How to identify the LIMIT size of an Generation Data Group or GDG? (Assume the GDG name as GDG.ONE)
- //STEP4 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=GDG.ONE,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * LISTCAT /*
- Carefully read the question and answer accordingly. In a COND Code parameter, what is the maximum number of conditions can be validated ?
- 8
- Carefully read the question and answer accordingly. Consider the following Job statement in a JCL:
- //MYJOB JOB(T,U202,SH1),'VIJAY N',CLASS=A
- How do you verify the syntax errors of above job without actually executing the job?
- By modifying the first statement to //MYJOB JOB (T,U202,SH1),’VIJAY’,CLASS=A,TYPRUN=SCAN
- Carefully read the question and answer accordingly. What will happen When COND=ONLY is coded in the current job step?
- The current job step will run only when any of the previous steps abnormally terminate
- Carefully read the question and answer accordingly. Which of the following are valid GDG creation?
- //STEP1 EXEC PGM=IDCAMS //SYSIN DD * //SYSPRINT DD SYSOUT=* DEFINE GENERATIONDATAGROUP - (NAME(SYS02.MYDATA.BASE) - LIMIT(200) - OWNER(P3SUN00) NOSCRATCH NOEMPTY) //
- Carefully read the question and answer accordingly. Which of the following will delete all the generations of GDG USERID.GDG.BASE keeping the GDG base?
- //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=USERID.GDG.BASE,DISP=(SHR,DELETE,KEEP)
- Carefully read the question and answer accordingly. State TRUE or FALSE
- GDGs are a group of data sets which are related to each other chronologically and functionally. These related data sets share a different data set name
- F
- Carefully read the question and answer accordingly. Many JCL statements contain specific values designed to direct and control the execution of the statement.
- What are these fields called ?
- Parameters
- Carefully read the question and answer accordingly. In DEFINE CLUSTER command, RECORDSIZE(100,200) means ________________
- Maximum record size 200 and average record size 100
- Carefully read the question and answer accordingly. Which of the following are correct for calculating the record size of an alternate cluster?
- Unique case: 5 + ( alt-key-length + primary-key )
- Carefully read the question and answer accordingly. Is CI split possible in ESDS file ?
- F
- Carefully read the question and answer accordingly. What are the types of VSAM files ?
- 1. KSDS 2. ESDS 3. RRDS 4. LDS
- Carefully read the question and answer accordingly. Is PRINT prints the VSAM dataset contents ? T
- Carefully read the question and answer accordingly. What is the ISPF command to execute the VSAM cluster definition?
- EXECUTE
- Carefully read the question and answer accordingly. Is the Syntax Freespace(CA%,CI%) correct for defining the VSAM cluster ?
- F
- Carefully read the question and answer accordingly. Is DELETE command deletes all objects associated with a retention period that has not expired.
- F
- Carefully read the question and answer accordingly. Would you specify FREESPACE for an ESDS?
- F
- Carefully read the question and answer accordingly. What are the ranges of CISZ (Control Interval size) specified while creating a KSDS VSAM cluster ?
- The specified CISZ size must be 512, 1,024, 2,048, or 4,096.
- Carefully read the question and answer accordingly. How to copy records in a VSAM file to a non-VSAM file ?
- REPRO
- Carefully read the question and answer accordingly. Which parameter should be specified to create VSAM RRDS base cluster file ?
- NUMBERED
- Carefully read the question and answer accordingly. Which parameter in IDCAMS ALTER is used to remove protection provided by certain security systems? NULLIFY
- Carefully read the question and answer accordingly. An alternate index has been created with the alternate key length as 6 and its structure is as below.
- 0 to 4 - ?
- 5 to 10 - Alternate key
- 11 to remaining - Other information
- Which component is occupied by first 5 bytes?
- Control Information
- Carefully read the question and answer accordingly. What does UPDATE parameter in DEFINE PATH indicate?
- When path is opened for processing both base cluster and it's upgrade set is opened for processing
- Carefully read the question and answer accordingly. What is the purpose of the START command ?
- To position a current record pointer on a desired record.
- Carefully read the question and answer accordingly. Which option specified to Delete a VSAM non-empty clusters.
- FORCE
- carefully read the question and answer accordingly. The purpose of VERIFY command is to re-sync the end of file info with the catalog info ?
- T
- Carefully read the question and answer accordingly. Which parameter in IDCAMS ALTER is used to set the dataset read-only?
- INHIBIT
- Carefully read the question and answer accordingly. Which parameter in IDCAMS is used to set aside free space for RRDS file?
- FREESPACE parameter is not applicable
- Carefully read the question and answer accordingly. What happens when a program A calls Program B, but Program B is unavailable?
- Exception or overflow condition occurs
- Carefully read the question and answer accordingly. State whether True of False
- GO TO verb is used to unconditionally transfer the control to elsewhere in the program. But it is not advisable to use in the program.
- T
- Carefully read the question and answer accordingly. ‘CONTINUE’ is a No operation statement and indicates that no executable instruction is present.
- State True or False.
- TRUE
- Carefully read the question and answer accordingly. Which of the following is true about INDEX for a TABLE?
- The Index is defined with the table and represents a displacement into the table.
- Carefully read the question and answer accordingly. State whether TRUE or FALSE
- The index value of an array can be passed thru LINKAGE SECTION
- F
- Carefully read the question and answer accordingly. Which of the difference between Perform and Call is incorrect?
- Perform refers to only one paragraph whereas call refers to an entire subprogram consisting of any number of paragraphs.
- Carefully read the question and answer accordingly. Statement I: SEARCH and SEARCH ALL can be used to search for an element in a table that satisfies a given criteria. Statement II: SEARCH ALL is faster than SEARCH. Which of the above statements is true
- I & II
- Carefully read the question and answer accordingly. What is the use of CONTINUE statement?
- It gives control to the next verb after the explicit scope terminator.
- Carefully read the question and answer accordingly. Which of the following COBOL verbs can be used to initialize the Table indexes? SET
- Carefully read the question and answer accordingly. ON SIZE ERROR can be used with
- All of the above
- Carefully read the question and answer accordingly. What will happen if a file 'EMP-ADDRESS-DETAILS' is referred to as 'EMP-ADRESS-DETAILS' in the program? It should throw the error message 'EMP-ADDRESS-DETAILS was not defined as a file-name'
- Carefully read the question and answer accordingly. Which of the following operations is not allowed when a relative file is opened in I-O mode and the access mode is Random?
- START
- FD FILE-1
- 01 REC-1 PIC X(80)
- ......
- WORKING-STORAGE SECTION
- 01 W-REC PIC X(90)
- ........
- PROCEDURE DIVISION
- FIRST-PARA
- .......
- READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
- which of the following is true with respect to the above?
- REC-1 and W-REC contain the same data
- Carefully read the question and answer accordingly. List down the rules to be followed for REWRITE statement
- All of the listed above
- Carefully read the question and answer accordingly. Files are defined and assigned in which paragraph of I-O section ?
- FILE-CONTROL
- Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done? OPEN in I-O mode and REWRITE
- Carefully read the question and answer accordingly. Which of the following gives the correct file organisations used in FILE-SECTION of COBOL?
- Sequential, Indexed, Relative.
- Carefully read the question and answer accordingly. Association between file names and corresponding file medium is done in
- File-Control Paragraph, I-O Section and Environment Division
- Carefully read the question and answer accordingly. There is a file whose ORGANIZATION is INDEXED. You want to read records from the file in random fashion as well as sequentially.
- Which of the following access mode would you specify?
- DYNAMIC
- Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
- OPEN in I-O mode and REWRITE
- Carefully read the question and answer accordingly. 1000-PROCESS-PARA.
- EVALUATE TRUE
- WHEN "001"
- DISPLAY "VALUE IS 001"
- WHEN "002"
- DISPLAY "VALUE IS 002"
- PERFORM 9000-PARA THRU 9000-PARA-EXIT
- WHEN "003"
- DISPLAY "VALUE IS 003"
- PERFORM 9000-PARA THRU 9000-PARA-EXIT
- WHEN "004"
- NEXT SENTENCE
- PERFORM 9000-PARA THRU 9000-PARA-EXIT
- WHEN OTHER
- DISPLAY "OTHER ISSUES"
- END-EVALUATE.
- 1000-EXIT.
- EXIT.
- Consider the above statement and select the appropriate option when option is "004"
- No answer showed
- Carefully read the question and answer accordingly. What is the content of RESULT after execution of the following COBOL instruction. The start
- value of RESULT is 0.
- PERFORM VARYING COUNT FROM 1 BY 1 UNTIL COUNT = 6
- COMPUTE RESULT = RESULT + 1
- END-PERFORM
- 5
- Carefully read the question and answer accordingly. By considering the below code what will be the content of WS-RESULT at the end of the series of move instruction?
- 01 WS-VARIABLES.
- 05 WS-VAR1 PIC X(10) VALUE 'COBOL VSAM'.
- 05 WS-VAR2 PIC X(10).
- 05 WS-RESULT PIC X(5).
- PROCEDURE DIVISION.
- 1000-MAIN-PARA.
- MOVE 'JAVA' TO WS-RESULT.
- MOVE WS-VAR1 TO WS-VAR2.
- MOVE WS-VAR2 TO WS-RESULT.
- COBOL
- Carefully read the question and answer accordingly. IDENTIFICATION DIVISION.
- PROGRAM-ID. PGM028.
- AUTHOR. MAINFRAMEWIZARD.
- DATA DIVISION.
- WORKING-STORAGE SECTION.
- 01 TEST-STRING PIC X(40) VALUE SPACES.
- 01 WS-COUNTER PIC 9(9) VALUE ZEROES.
- PROCEDURE DIVISION.
- 10000-MAIN-PARA.
- MOVE 'USE OF INSPECT DEPICTED BY MAINFRAMEWIZARD.COM'
- TO TEST-STRING
- INSPECT TEST-STRING TALLYING WS-COUNTER FOR ALL 'T'
- DISPLAY 'COUNT OF ALL T IN STRING IS = ' WS-COUNTER
- STOP RUN.
- What is the value of WS-COUNTER?
- 000000002
- Carefully read the question and answer accordingly. 01 VAR-A PIC $99999
- The value 1234 will be displayed as
- 1234
- Carefully read the question and answer accordingly. study the data discriptions and answer the questions given below
- i)01 ORDER RECORD
- 05 OUT-HEADER PIC X(50)
- 05 ITEM-COUNT PIC 99
- 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING
- ON ITEM-COUNT
- ii)01 NAME-AND-ADDRESS
- 05 N-AND-A-LINE OCCURES 5
- 05 LINE-LENGTH PIC P9
- 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON
- LINE-LENGTH
- iii)01 SALES-LIST
- 05 SALESMAN-COUNT PIC 99
- 05 SALES PIC 9(6) OCCURS 1 TO 100
- DEPENDING ON
- SALESMAN-COUNT
- iv)01 ORDER-RECORD
- 05 NO-OF-BRANDS PIC 99
- 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
- NO-OF-BRANDS
- which of the following is true?
- a.i) and iii) are valid
- b.i) and iv) are valid
- c.i) and iii) are not valid
- d.all are valid
- i) and iii) are not valid
- Carefully read the question and answer accordingly. 01 WS-VARIABLES.
- 05 WS-V1 PIC 9(2) VALUE 10.
- 05 WS-V2 PIC 9(2) VALUE 20.
- 05 WS-V3 PIC 9(2) VALUE 30.
- PROCEDURE DIVISION.
- 1000-MAIN-PARA.
- IF WS-V1 = WS-V2 THEN
- PERFORM 1001-ADD-PARA
- ELSE
- PERFORM 1002-SUB-PARA
- END-IF.
- PERFORM 1003-MUL-PARA.
- By considering the above code snippet select the appropriate option.
- Both 1002-SUB-PARA and 1003-MUL-PARA will get executed
- Carefully read the question and answer accordingly. Consider the below code snippet.
- 01 WS-ITEM.
- 05 WS-TOTAL PIC 9(5) VALUE SPACES.
- 05 WS-NET PIC 9(10) VALUE ZEROES.
- 05 WS-GROSS PIC 9(20) VALUE ZEROES.
- ..
- COMPUTE WS-GROSS = (WS-NET - WS-TOTAL)
- The code is syntatically incorrect.
- Carefully read the question and answer accordingly. For the below code snippet
- IF VAR1 > 3
- NEXT SENTENCE
- ELSE
- DISPLAY 'I AM IN ELSE PART'
- END-IF
- DISPLAY 'IMMEDIATE SENTENCE'.
- DISPLAY 'SECOND SENTENCE'.
- STOP RUN.
- What is the result when VAR1=4
- SECOND SENTENCE
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-FIRST PIC X(10) VALUE "MAINFRAMES".
- 01 WS-SECOND.
- 05 WS-FF PIC X(06) VALUE "HAPPY ".
- 05 WS-SS PIC X(10).
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE FUNCTION REVERSE (WS-FIRST) TO WS-SS
- DISPLAY "WS-FIRST :" WS-FIRST
- DISPLAY "WS-SECOND :" WS-SECOND
- After execution of the above code snippet what will be the sysout?
- WS-FIRST :MAINFRAMES WS-SECOND :HAPPY SEMARFNIAM
- If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
- ESDS
- In the COBOL SELECT statement for a KSDS what are the three possibilities for ACCESS ?
- ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC
- It is possible to access records randomly in ESDS T
- Is KEYS parameter defined for a ESDS cluster?
- F
- Select the types of datasets provided by Virtual Storage Access
- All of the listed above
- What are the types of VSAM files?
- 1. KSDS 2. ESDS 3. RRDS 4. LDS
- What is IMBED parameter in Define VSAM cluster?
- IMBED specifies that sequence set records are to be imbedded with the data in the data component of the cluster.
- Before loading a sequential flle to a VSAM KSDS, the input file must be sorted on key value.
- State True or False.
- T
- Control Interval contains Records free space, Control interval definition field(CIDF)and Record definition field(RDF). Which component is an "optional" one in the listed above?
- Records free space
- Carefully read the question and answer accordingly. How do you repeat the last line command (Action)?
- Use = in the command line
- Carefully read the question and answer accordingly. Point and Shoot field is a feature by which one can place a cursor at it and press ENTER to perform the action.
- State True or False.
- TRUE
- Carefully read the question and answer accordingly. What is the equalant key function for command RETRIEVE
- PF12
- Carefully read the question and answer accordingly. Which option is used to invoke CLIST prompt?
- START 6
- Carefully read the question and answer accordingly. What is the TSO command to list the attributes of a dataset ?
- LISTDS
- Carefully read the question and answer accordingly. What is the TSO command which will exclude all strings in the member and show only the search string which we want to see?
- Type ‘X all’ then ‘F all ‘search-string’
- Carefully read the question and answer accordingly. State TRUE or FALSE
- The maximum length of CLIST name followed by TSO command should not exceed 8 characters T
- Carefully read the question and answer accordingly. What is the command to rename an entire datase
- Type R against the dataset name and provide the new name
- Carefully read the question and answer accordingly. Which TSO line command is used to list and directly Browse the member?
- B / (member name) issued against the PDS.
- Carefully read the question and answer accordingly. In SDSF primary option menu which option is used to see the status of the jobs
- ST
- Carefully read the question and answer accordingly. What will be the result of the below FIND command?
- EXCLUDE ALL; FIND P’VERSION#’ ALL
- Excludes all the lines in the dataset and Finds all the occurrences of Version# where # is a numeric
- Carefully read the question and answer accordingly. What is a SET Command in AMS ?
- SET command used to set either the LASTCC value or the MAXCC value to a specific value.
- Carefully read the question and answer accordingly. State True or False.
- Using EXPORT command is it possible to copy the records from VSAM file to another VSAM file.
- F
- Carefully read the question and answer accordingly. Consider the below code snippet
- //SYSIN DD *
- DEFINE CLUSTER (NAME(MYID.TEST.FILE) -
- VOLUMES(MVS803 MVS804) -
- RECORDSIZE(22 22) -
- RECORDS(100 100) -
- NONINDEXED ) -
- DATA (NAME(MYID.TEST.FILE.DATA))
- //
- What type of MYID.TEST.FILE file will be created after executing the job?
- MYID.TEST.FILE as a ESDS file
- Carefully read the question and answer accordingly. How to copy records in a VSAM file to a non-VSAM file ?
- REPRO
- Carefully read the question and answer accordingly. State TRUE or FALSE.
- Is it possible to delete non-vsam dataset using IDCAMS utiltity ?
- T
- Carefully read the question and answer accordingly. By considering the below code snippet, select the appropriate answer in the perspect of syntax in INFILE & OUTFILE
- //IDCAMCOP EXEC PGM=IDCAMS
- //SYSPRINT DD SYSOUT=*
- //FILEINP DD DSN=MYID.INPUT,DISP=SHR
- //FILEOUP DD DSN=MYID.TEST.KSDS,DISP=SHR
- //SYSIN DD *
- REPRO INFILE(MYID.INPUT) OUTFILE(MYID.TEST.KSDS)
- /* Only DD names should be given while using INFILE & OUTFILE
- Carefully read the question and answer accordingly. Which of the following can be used to bypass input records when using REPRO command?
- SKIP(n)
- COUNT(n)
- FROMKEY(n1) TOKEY(n2)
- Carefully read the question and answer accordingly. Which parameter in IDCAMS is used to set aside free space for RRDS file?
- FREESPACE parameter is not applicable
- Carefully read the question and answer accordingly. State True or False
- Path is acting as a logical connection between the base cluster and the Alternate Index
- T
- Carefully read the question and answer accordingly. Select the correct option which related to the below statement
- "Deleting a record in a sequential file is ..."
- Not Possible
- Carefully read the question and answer accordingly. Which of the following operations is not allowed when a relative file is opened in I-O mode and the access mode is Random? START
- Carefully read the question and answer accordingly. How do you refer the fixed block file in COBOL program?
- ORGANIZATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0
- Carefully read the question and answer accordingly. Select the options which are related to START statement
- Enables the positioning of the pointer as a specific point in an indexed or relative file
- C arefully read the question and answer accordingly. Which of the following gives the correct file organisations used in FILE-SECTION of COBOL?
- Sequential, Indexed, Relative.
- Carefully read the question and answer accordingly. For each file you want to read in a COBOL program you have to provide a set of declarations
- and instructions. In which order must they be executed?
- (1) SELECT infile ASSIGN TO xx
- (2) READ infile
- (3) OPEN INPUT infile
- (4) CLOSE infile
- 1, 3, 2, 4
- Carefully read the question and answer accordingly. SORT RAFFLE_FILE
- ON ASCENDING KEY IBM-MAIN Y2K-MAIN
- USING INPUT-FILE GIVING OUTPUT-FILE.
- Which one the following is true.
- IBM-MAIN is the major key and Y2K-MAIN is the minor key.
- Carefully read the question and answer accordingly. •Consider the following FILE SECTION and select the most appropriate comment from the four given below:
- 05 CALENDAR-DATE PIC X(6).
- 10 CALENDAR-DD PIC 99.
- 10 CALENDAR-MM PIC 99.
- 10 CALENDAR-YY PIC 99.
- Incorrect, since PIC clause cannot be specified for a group item
- Carefully read the question and answer accordingly. Select the appropriate option which is not suitable, if the file is opened in the below mode
- OPEN INPUT
- WRITE
- Carefully read the question and answer accordingly. State True of False
- Multiple keys (Primary & secondary) can be maintained by Indexed files.
- T
- Carefully read the question and answer accordingly. Copybook can contain only file layouts. State True or False.
- T
- Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
- OPEN in I-O mode and REWRITE
- Carefully read the question and answer accordingly. Match the file operation and file status code and choose the right option
- 1. File Attribute Mismatch -a) 35
- 2. Duplicate Key condition on KSDS file -b) 49
- 3. File Not Available -c) 22
- 4. REWRITE on file that is not opened I-O -d) 39
- 1 - d 2 - c 3 - a 4 – b
- Carefully read the question and answer accordingly. For each file you want to read in a COBOL program you have to provide a set of declarations
- and instructions. Select the appropriate order?
- (a) SELECT infile ASSIGN TO
- (b) READ infile
- (c) OPEN INPUT infile
- (d) CLOSE infile
- a, c, b, d
- Carefully read the question and answer accordingly. What is the file status code for "FILE NOT FOUND"?
- 13
- Carefully read the question and answer accordingly. FD FILE1-DATA
- RECORDING MODE F
- BLOCK CONTAINS 0 RECORDS.
- 01 S1-FILE1-DATA PIC X(400).
- 01 WS-USING-FILE1 REDEFINES S1-FILE1-DATA.
- Is the above file section declaration syntatically correct ?
- F
- Carefully read the question and answer accordingly. The Procedure Division of a program contains the statement
- WRITE MASTER-REC
- Which of the OPEN mode must not be used for the same?
- OPEN INPUT
- Carefully read the question and answer accordingly. State True of False
- READ NEXT RECORD is specified when an index sequential file is being read sequentially
- T
- Carefully read the question and answer accordingly. Select the correct option which related to the below statement
- "Deleting a record in a sequential file is ..."
- Not Possible
- Carefully read the question and answer accordingly. Consider a scenario what will happen when I try to open an empty file in INPUT/I-O mode having incorrect DD name ? JOB will abend with S322 due to File status 35
- Carefully read the question and answer accordingly. FILE-CONTROL paragraph in a COBOL program appears in which division?
- Input-Output Section in Environment Division
- Carefully read the question and answer accordingly. Indicate which one of the following will not have the INVALID KEY Phrase when used in connection with sequentially accessed relative file in a PROCEDURE DIVISION with out any declarative section.
- REWRITE STATEMENT
- C arefully read the question and answer accordingly. consider the following
- FD FILE-1
- 01 REC-1 PIC X(80)
- ......
- WORKING-STORAGE SECTION
- 01 W-REC PIC X(90)
- ........
- PROCEDURE DIVISION
- FIRST-PARA
- .......
- READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
- which of the following is true with respect to the above?
- REC-1 and W-REC contain the same data
- Carefully read the question and answer accordingly. List down the modes which are used to open the files for writing? EXTEND OUTPUT
- Carefully read the question and answer accordingly. READ INPFILE INTO INPREC
- AT END
- CLOSE INPFILE
- STOP RUN
- END-READ.
- For the above code snippet, which is correct
- AT END path is taken when the current read encounters end of file
- Carefully read the question and answer accordingly. Select the appropriate option which is not suitable, if the file is opened in the below mode
- OPEN INPUT
- WRITE
- Carefully read the question and answer accordingly. Which of the following files can be opened in all the 4 modes?
- Sequential
- Carefully read the question and answer accordingly. The following is a Procedure division statement
- READ IN-FILE INTO IN-REC AT END CLOSE IN-FILE STOP RUN.
- Where IN-REC is the record-name of IN-FILE. Which one of the following is
- Correct?
- The AT END path is taken if all the records have been read and the current read encounters the end of file.
- Carefully read the question and answer accordingly. What does file status 37 signify ?
- File OPEN with wrong mode
- Carefully read the question and answer accordingly. Consider the following OPEN statement:
- OPEN EXTEND IN-FILE.
- Identify correct statements from the following related to above.
- If the organization of IN-FILE is sequential, records can be added at the end.
- Carefully read the question and answer accordingly. FD FILE1-DATA
- RECORDING MODE F
- BLOCK CONTAINS 0 RECORDS.
- 01 S1-FILE1-DATA PIC X(400).
- 01 WS-USING-FILE1 REDEFINES S1-FILE1-DATA.
- Is the above file section declaration syntatically correct ? F
- Carefully read the question and answer accordingly. Association between file names and corresponding file medium is done in
- File-Control Paragraph, I-O Section and Environment Division
- Carefully read the question and answer accordingly. State True of False
- Multiple keys (Primary & secondary) can be maintained by Indexed files.
- T
- Carefully read the question and answer accordingly. Which of the following is not a valid scope terminator in COBOL?
- END
- Carefully read the question and answer accordingly. Select the statement which is not acceptable in COBOL?
- IF WS-VARIABLE IS NONALPHABETIC
- Carefully read the question and answer accordingly. 01 level number in COBOL is an independent variable and will take less memory space ? F
- Carefully read the question and answer accordingly. Results of an EVALUATE statement is same after arranging the order of WHEN clause
- F
- Carefully read the question and answer accordingly. Which of the following item is initialized to ZEROES while using INITIALIZE keyword? Numeric
- Carefully read the question and answer accordingly. State whether True or False. Can REDEFINES clause be used for '05' level items in FD SECTION? T
- Carefully read the question and answer accordingly. FUNCTION CURRENT-DATE returns
- Current Date, time and difference between the local time and GMT
- Carefully read the question and answer accordingly. Which of the following verb is used for looping in COBOL?
- PERFORM
- Carefully read the question and answer accordingly. Observe the COMPUTE statement given below: COMPUTE A ROUNDED= (B ROUNDED* 100)/C ROUNDED
- This statement will round the variables in the COMPUTE statement and round the resultant also after computation
- Carefully read the question and answer accordingly. 88 level variables can be declared in FD section
- T
- Carefully read the question and answer accordingly. ADDRESS OF option is used with linkage variables in which levels?
- 01
- Carefully read the question and answer accordingly. An inline PERFORM ____________________ .
- must be terminated with an END-PERFORM
- Carefully read the question and answer accordingly. Which of the following are valid for a PERFORM statement?
- TEST BEFORE
- Carefully read the question and answer accordingly. How is sign stored in a COMP field?
- In the most significant bit
- Carefully read the question and answer accordingly. The number of bytes occupied by a S9(5)COMP-3 field is ____________.
- 03
- Carefully read the question and answer accordingly. Match the following and choose the right option
- 1. Level Numbers 01 to 49 - a. individual elementary items
- 2. Level Number 77 - b. General elementary items
- 3. Level Number 88 - c. RENAMES clause
- 4. Level Number 66 - d. Condition names
- 1 - b 2 - a 3 - d 4 – c
- Carefully read the question and answer accordingly. Several alternative paths can be executed by just one - EVALUATE statement
- Carefully read the question and answer accordingly. Select the correct sequence to be involved in compilation?
- Source Program Compiler Object File Link Editor Program File
- Carefully read the question and answer accordingly. Which of the following is true with respect to SQL communication area in COBOL program? It is a data structure that must be included in any host-language program using SQL. It is used to pass feedback about the sql operations to the program. Fields are return codes, error messages, handling codes and warnings.
- Carefully read the question and answer accordingly. A pre-defined function called by a built-in function reference is called ________________
- Intrinsic function
- Carefully read the question and answer accordingly. After instructions are executed by a PERFORM para statement, control returns to the statement directly following the PERFORM.
- State True or False.
- T
- Carefully read the question and answer accordingly. Which of the following is correct in-line PERFORM?
- PERFORM MOVE A TO B END-PERFORM.
- Carefully read the question and answer accordingly. How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy 8 bytes
- Carefully read the question and answer accordingly. The sign condition determines whether or not the algebraic value of an identifier or arithmetic expression is greater than or less than or equal to zero.
- State True or False.
- T
- Carefully read the question and answer accordingly. DELIMITED BY SIZE in STRING fucntion, makes the transfer of characters from source field to receiving field to stop once a blank is encountered F
- Carefully read the question and answer accordingly. State True or False.
- COMP-1 stores binary data.
- F
- Carefully read the question and answer accordingly. Select an invalid scope terminator?
- CASE END-CASE
- Carefully read the question and answer accordingly. Which if the following is a syntactically proper COBOL if statement? IF AMT is less Than ZERO THEN ADD 1 TO Somevalue ELSE ADD 7 to SomeOtherValue END-IF
- Carefully read the question and answer accordingly. Results of an EVALUATE statement is same after arranging the order of WHEN clause
- F
- Carefully read the question and answer accordingly. Consider the following scenario:
- EMPMST is an Employee master VSAM ESDS file and TRAN is a VSAM ESDS transaction file containing new employee joinee data.
- emp-no is the key for both the files. Both the files are sorted on emp-no.
- A COBOL file matching program takes EMPMST and TRAN as input files and a NEW-EMPMST is created which will have both existing and new employee records.
- During the file match based on emp-no, when emp-no of master file is greater than that in the transaction file, a new record based on transaction record is created in the new master file.
- Which of the following gives the correct file(s) that is(are) read to get the next record?
- Transaction file only
- Carefully read the question and answer accordingly. Which parameter should be specified to create VSAM RRDS base cluster file ?
- NUMBERED
- Carefully read the question and answer accordingly. Select the appropriate option with respect to access method in VSAM
- Random Sequential Skip Sequential
- arefully read the question and answer accordingly. Which of the following command will be used along with REPRO to reset the output cluster to Empty before loading?
- REUSE
- Carefully read the question and answer accordingly. In the VSAM file definition using IDCAMS, FREESPACE is defined as below.
- FREESPACE (10, 20). What does 10 and 20 stand for? 10% of CI free, 20% of CI in CA is free
- Carefully read the question and answer accordingly. Consider the following statements and select the appropriate answer:
- Statement 1:
- KSDS Records can be copied in REPRO by using FROMKEY and TOKEY
- Statement 2:
- ESDS Records can be copied in REPRO by using FROMADDRESS and TOADDRESS
- Statement 3:
- RRDS Records can be copied in REPRO by using FROMADDR and TOADDR
- Statement 1 & 2 :Both are True
- Carefully read the question and answer accordingly. You have to copy 500 records, starting from 2000th record of a KSDS file using REPRO command.
- Which of the parameter listed below can be used to achieve this?
- SKIP (1999) COUNT (500)
- Carefully read the question and answer accordingly. In the following VSAM definition, what is the length of the Key in KSDS?
- DEFINE CLUSTER -
- (NAME (XIND.NLT.CLUSTER) -
- CYLINDER (5 1) -
- VOLUMES (WORK01) -
- RECORDSIZE (120 124) -
- KEYS (8 24) -
- INDEXED) 8
- Carefully read the question and answer accordingly. Which parameter should be coded to retain the VSAM file in EXPORT command ?
- TEMPORARY
- Carefully read the question and answer accordingly. What does UPDATE parameter in DEFINE PATH indicate?
- When path is opened for processing both base cluster and it's upgrade set is opened for processing
- Carefully read the question and answer accordingly. In SHAREOPTIONS(2,3) parameter of DEFINE CLUSTER command, what does parameters 2 and 3 stand for?
- 2 for Cross Region and 3 for Cross System
- Carefully read the question and answer accordingly. Consider the below code snippet:
- //STEP10 EXEC PGM=IDCAMS
- //SYSOUT DD SYSOUT=*
- //SYSPRINT DD SYSOUT=*
- //INDD DD DSN=&SYSUID..TEST.TEST,DISP=SHR
- //SYSIN DD *
- PRINT INFILE(INDD) COUNT(1)
- IF MAXCC=4 THEN DO
- SET MAXCC = 3
- END
- /* The MAXCC will be 3 if the INDD files return code is 4
- Carefully read the question and answer accordingly. Is the IDCAMS ALTER command used to change the LIMIT parameter for a GDG ?
- F
- Carefully read the question and answer accordingly. Which parameter should be coded to copy first 5 records from RRDS file to KSDS file using REPRO command ?
- FROMNUMBER(1) TONUMBER(5)
- Carefully read the question and answer accordingly. State True or False.
- Alternate index can be created for RRDS VSAM file ? F
- Carefully read the question and answer accordingly. State TRUE or FALSE.
- Is it possible to delete non-vsam dataset using IDCAMS utiltity ? T
- Which of the following is contained in the index component of a VSAM dataset?
- Record Key and record location number
- Choose the AMS command necessary to create the ALTERNATIVE INDEX.
- Define PATH
- Consider the below IDCAMS, PRINT command in VSAM. Choose the correct answer.
- //STEP001 EXEC PGM=IDCAMS
- //SYSPRINT DD SYSOUT=*
- //SYSIN DD *
- PRINT IDS(USERID.VSAM.FILE)
- /*
- Records will be printed in CHARACTER and HEXADECIMAL format.
- What is the usage of UPGRADE parameter while defining alternate index ? State TRUE or FALSE.
- UPGRADE specifies whether an alternate index is updated when there is an update to the base cluster.
- Consider the below code snippet
- //SYSIN DD *
- DEFINE CLUSTER(NAME(MYID.TEST.KSDS) -
- RECORDSIZE(80,80) -
- CISZ(512) -
- REUSE -
- KEYS(3,0) -
- TRACKS(2,3))
- /*
- INDEXED is not given for the specified KSDS in SYSIN card. What will happen after the job completed?
- Data and index component for the specified KSDS will get created
- Which parameter should be specified to create VSAM RRDS base cluster file ?
- NUMBERED
- Carefully read the question and answer accordingly. How many different alternate indexes can be defined on a base cluster?
- 253
- Carefully read the question and answer accordingly. Which of the following are valid GDG creation?
- //STEP1 EXEC PGM=IDCAMS //SYSIN DD * //SYSPRINT DD SYSOUT=* DEFINE GENERATIONDATAGROUP - (NAME(SYS02.MYDATA.BASE) - LIMIT(200) - OWNER(P3SUN00) NOSCRATCH NOEMPTY) //
- Carefully read the question and answer accordingly. Consider the below JCL statements and choose its usage.
- //STEP10 EXEC PGM=IDCAMS
- //MYFILE DD DSN=<dataset name>, DISP=SHR
- //SYSIN DD *
- PRINT INFILE(MYFILE) CHAR COUNT(1)
- /*
- //
- Check for Empty dataset
- Carefully read the question and answer accordingly. What abend will occur when a the system does not find the program to be executed in Load library?
- S806
- Carefully read the question and answer accordingly. ABEND Code for Time out
- S322
- Carefully read the question and answer accordingly. A GDG has been defined in the following manner.
- DEFINE GDG (NAME(USERID.GDG.BASE) LIMIT(5) SCRATCH)
- What happens when a dataset of USERID.GDG.BASE is uncatalogued?
- Deletes the dataset
- arefully read the question and answer accordingly. The syntax is used to refer SORTOUT of STEP01 in SORTIN of STEP02.
- //STEP01 EXEC PGM=SORT
- ……
- //SORTOUT DD DSN=TEST.OUTFILE,
- // DISP=(NEW,CATLG,DELETE),DATACLAS=MB001,
- // UNIT=SYSDA,
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=8000)
- …..
- //STEP02 EXEC PGM=SORT
- ………
- //SORTIN DD DSN=____________
- //SORTOUT DD DSN=TEST.OUTFILE1,
- *.STEP01.SORTOUT
- Carefully read the question and answer accordingly. Which sort command will eliminate duplicate records in the data set?
- SUM FIELDS=NONE
- Carefully read the question and answer accordingly. Which parameter used to control the job step execution based on the return-code of the previous step.
- COND
- Carefully read the question and answer accordingly. Many JCL statements contain specific values designed to direct and control the execution of the statement.
- What are these fields called ?
- Parameters
- Carefully read the question and answer accordingly. If the program is not coded with PROGRAM-ID what will happen?
- The compilation will be failed with "Expected a program-name"
- Carefully read the question and answer accordingly. Indicate which one of the following is an invalid paragraph name
- PARA+5
- Carefully read the question and answer accordingly. Comments or continuation can lie in area A of the cobol program. State True or False.
- F
- Carefully read the question and answer accordingly. Program-id should mandatorily be same as member name of COBOL program? State True or False.
- F
- Carefully read the question and answer accordingly. Which of the following defines AREA A in COBOL Program?
- Column 8-11
- Carefully read the question and answer accordingly. State True or False.
- The level number 01 is coded in Area B F
- Carefully read the question and answer accordingly. Which of the following clause is not mandatory while declaring Indexed files ?
- File Status
- Carefully read the question and answer accordingly. State whether True of False
- Division Header or Section Header or Paragraph Header can lie in Area B.
- F
- Carefully read the question and answer accordingly. List down the four Divisions of COBOL at high-level?
- Identification Division Environment Division Data Division Procedure Division
- Carefully read the question and answer accordingly. A paragraph name may consist of only numeric digits. T
- Carefully read the question and answer accordingly. Which of the following defines AREA B in COBOL Program?
- Column 12-72
- Carefully read the question and answer accordingly. The DATA DIVISION is divided into a number of sections such as
- File Section Working-Storage Section
- Carefully read the question and answer accordingly. ON SIZE ERROR can be used with
- All of the above
- Carefully read the question and answer accordingly. Which of the following defines a variable length table?
- 01 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
- Carefully read the question and answer accordingly. Determine the bytes
- 01 REC-1.
- 01 L PIC X(6).
- 02 M REDEFINES L.
- 03 N OCCURS 6 TIMES PIC 9.
- 02 O OCCURS 4 TIMES.
- 03 P PIC X(5).
- 03 Q PIC 999.
- 38
- Carefully read the question and answer accordingly. Which of the following will cause SOC4 abend with respect to processing of TABLES?
- A Subscript or INDEX is out of bounds (for the table).
- Carefully read the question and answer accordingly. Linkage section is
- a) It is must for called program
- b) It is must for calling program
- c) used for displaying messages in sub program
- d) Temporary storage for called program Temporary storage for called program
- Carefully read the question and answer accordingly. How does static call differ from Dynamic call?
- Static call is bound with calling pgm at link edit time whereas dynamic call is loaded from pgm library and static is a part of executable load module
- Carefully read the question and answer accordingly. In CALL BY REFERENCE method, data value of variable is passed to sub program
- F
- Carefully read the question and answer accordingly. Which of the following cannot be used to set an initial value to an index?
- ADD or MOVE statement.
- Carefully read the question and answer accordingly. What does the call mean by the phrase "caller and calling program share the same memory"?
- Call by reference
- Carefully read the question and answer accordingly. Consider the below statements and state the correct option with respect to SEARCH ALL
- Statement 1: SEARCH ALL can be either ASCENDING or DESCENDING order.
- Statement 2: ASCENDING is default
- Statement 3: DESCENDING is default
- Statement 4: DESCENDING is not default. Key must be specified if an array sorted in descending order
- Statements 1,2,4 are TRUE Statement 3 is FALSE
- arefully read the question and answer accordingly. What are the ranges of CISZ (Control Interval size) specified while creating a KSDS VSAM cluster ?
- The specified CISZ size must be 512, 1,024, 2,048, or 4,096.
- The index component in cluster is a collection of logically sequenced keys. The key value is taken from each logical record which will be useful for random access.
- T
- What are the parts of index component in VSAM?
- Sequence set
- If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
- ESDS
- Carefully read the question and answer accordingly. How to edit a dataset in view mode?
- REPLACE .zf .zl <dataset name>
- Carefully read the question and answer accordingly. Which TSO command is used to see the current data set allocations?
- TSO ISRDDN
- Carefully read the question and answer accordingly. In SHAREOPTIONS(2,3) parameter of DEFINE CLUSTER command, what does parameters 2 and 3 stand for?
- 2 for Cross Region and 3 for Cross System
- Carefully read the question and answer accordingly. Which of the following can be used to bypass input records when using REPRO command?
- SKIP(n)
- COUNT(n)
- FROMKEY(n1) TOKEY(n2)
- Carefully read the question and answer accordingly. Consider the following:
- Statement 1: ISPF option TS can be used to browse VSAM RRDS datasets.
- Statement 2: Using TS option you can edit records in a VSAM RRDS dataset.
- Which of the following is applicable for above?
- Both statements 1 and 2 are true
- Carefully read the question and answer accordingly. Consider the following:
- Statement 1: You can delete a record in VSAM KSDS dataset using TS option.
- Statement 2: TS option also shows the deleted VSAM KSDS records.
- Which of the following is applicable for above?
- Statement 1 is true, 2 is false
- Carefully read the question and answer accordingly. Is the Syntax Freespace(CA%,CI%) correct for defining the VSAM cluster ?
- F
- Carefully read the question and answer accordingly. Which parameter should be coded to make VSAM dataset read-only ?
- INHIBIT
- Carefully read the question and answer accordingly. Consider the following statements with regard to ESDS datasets in COBOL VSAM processing:
- Statement 1: An ESDS dataset can be used in Dynamic access mode.
- Statement 2: Records can be inserted in the middle of an ESDS dataset using INSERT statement.
- Which of the following is applicable for the above statements?
- Statement 1 and 2 are both false
- Carefully read the question and answer accordingly. Is CI split possible in ESDS file ?
- F
- Carefully read the question and answer accordingly. Which is the default value of the Recordsize parameter, while defining the cluster?
- 4089
- Carefully read the question and answer accordingly. It is possible to access records randomly in ESDS T
- Carefully read the question and answer accordingly. Statement 1: ESDS file can be specified with FREESPACE
- Statement 2: KSDS file can be specified with FREESPACE
- By considering the above statements state the statements whether TRUE or FALSE
- Statement 1 is False Statement 2 is True
- ABEND Code for data exception?
- SOC 7
- If we have a data set containing 10,000 fixed blocked records with LRECL=100. What is the space required for the above blksize?
- Blocks needed = 10,000/(4096/100)
- Which parameter used to control the job step execution based on the return-code of the previous step.
- COND
- Which "system abend" will occur when the job was cancelled because of violations or restrictions?
- S122 Abend
- A GDG has been defined in the following manner.
- DEFINE GDG (NAME(USERID.GDG.BASE) LIMIT(5) SCRATCH)
- What happens when a dataset of USERID.GDG.BASE is uncatalogued?
- Deletes the dataset
- What abend will occur when a the system does not find the program to be executed in Load library?
- S806
- Which parameter is used to modify the attributes of a GDG defined?
- ALTER command
- If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed
- 4094
- Which of the following are valid GDG creation?
- //STEP1 EXEC PGM=IDCAMS //SYSIN DD * //SYSPRINT DD SYSOUT=* DEFINE GENERATIONDATAGROUP - (NAME(SYS02.MYDATA.BASE) - LIMIT(200) - OWNER(P3SUN00) NOSCRATCH NOEMPTY) //
- GDGs are a group of data sets which are related to each other chronologically and functionally. These related data sets share a different data set name
- F
- Which "system abend" will occur when there is a insufficient space in disk?
- SB37 Abend
- What is the JCL abend S706 ?
- Load module not executable
- The syntax is used to refer SORTOUT of STEP01 in SORTIN of STEP02.
- //STEP01 EXEC PGM=SORT
- ……
- //SORTOUT DD DSN=TEST.OUTFILE,
- // DISP=(NEW,CATLG,DELETE),DATACLAS=MB001,
- // UNIT=SYSDA,
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=8000)
- …..
- //STEP02 EXEC PGM=SORT
- ………
- //SORTIN DD DSN=____________
- //SORTOUT DD DSN=TEST.OUTFILE1,
- *.STEP01.SORTOUT
- What abend will occur when a the system does not find the program to be executed in Load library?
- S806
- State True or False
- An empty file can be opened in EXTEND mode in a Cobol program and it will not throw any error while running.
- T
- Association between file names and corresponding file medium is done in File-Control Paragraph, I-O Section and Environment Division
- Which condition checks are allowed with the following variable?
- 01 END-OF-FILE PIC X(1).
- 88 EOF VALUE 'N'.
- 88 N-EOF VALUE 'Y'.
- All of the listed above
- Consider the following declaration in the File section of a program.
- 05 CALENDAR-DATE PIC X(6).
- 10 CALENDAR-DD PIC 99.
- 10 CALENDAR-MM PIC 99.
- 10 CALENDAR-YY PIC 99.
- Incorrect, since PIC clause cannot be specified for a group item
- Match the file operation and file status code and choose the right option
- 1. File Attribute Mismatch -a) 35
- 2. Duplicate Key condition on KSDS file -b) 49
- 3. File Not Available -c) 22
- 4. REWRITE on file that is not opened I-O -d) 39
- 1 - d 2 - c 3 - a 4 - b
- SORT RAFFLE_FILE
- ON ASCENDING KEY IBM-MAIN Y2K-MAIN
- USING INPUT-FILE GIVING OUTPUT-FILE.
- Which one the following is true.
- IBM-MAIN is the major key and Y2K-MAIN is the minor key.
- State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
- F
- State True of False
- Multiple keys (Primary & secondary) can be maintained by Indexed files.
- T
- If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
- OPEN in I-O mode and REWRITE
- For each file you want to read in a COBOL program you have to provide a set of declarations
- and instructions. Select the appropriate order?
- (a) SELECT infile ASSIGN TO
- (b) READ infile
- (c) OPEN INPUT infile
- (d) CLOSE infile
- a, c, b, d
- Select the options which are related to START statement
- Enables the positioning of the pointer as a specific point in an indexed or relative file
- What happens when EXIT PROGRAM is coded in the Main Program?
- Results in 4038 abend.
- FILE-CONTROL paragraph in a COBOL program appears in which division?
- Input-Output Section in Environment Division
- List down the rules to be followed for REWRITE statement
- All of the listed above
- Association between file names and corresponding file medium is done in
- File-Control Paragraph, I-O Section and Environment Division
- What does file status 22 signify ?
- Invalid Key - Duplicate Key found
- Carefully read the question and answer accordingly. Is DELETE command deletes all objects associated with a retention period that has not expired.
- F
- Carefully read the question and answer accordingly. Before loading a sequential flle to a VSAM KSDS, the input file must be sorted on key value.
- State True or False.
- T
- Carefully read the question and answer accordingly. In a KSDS dataset, if a record length is 128, which of the following are appropriate CISIZE values?
- 512
- Carefully read the question and answer accordingly. State True or False.
- Can we have duplicate records in Alternate index file ?
- T
- Carefully read the question and answer accordingly. Consider there are 10 records in KSDS file. How to print only the last five records ?
- PRINT IDS (DSN) SKIP(5) COUNT (5)
- Carefully read the question and answer accordingly. State whether true or false:
- The index component in cluster is a collection of logically sequenced keys. The key value is taken from each logical record which will be useful for random access.
- T
- Carefully read the question and answer accordingly. Consider the following statements with regard to RRDS datasets in COBOL VSAM processing:
- Statement 1: In the COBOL SELECT clause for a RRDS file, Relative key is R-RRN and R-RRN is part of the record description.
- Statement 2: ACCESS mode is DYNAMIC can be used for a RRDS dataset.
- Which of the following is applicable for the above statements?
- Statement 1 is false, 2 is true
- Carefully read the question and answer accordingly. State True or False
- The ERASE parameter specifies that when the cluster is deleted, the space occupied by the cluster should be physically erased by overwriting the space to freeing the space for reuse T
- Carefully read the question and answer accordingly. Which attribute is used to define the number of bytes allotted for the Control Interval while allocating VSAM file by using IDCAMS?
- CISZ
- Carefully read the question and answer accordingly. Consider the following piece of code
- 01 GROUP-ITEM
- 05 AMT-1 PIC 99V9 USAGE COMP VALUE 50
- 05 AMT-2 PIC 9(4)V99 USAGE COMP
- PROCEDURE DIVISION
- MOVE ZERO TO GROUP-ITEM.
- ADD 50 TO AMT-1.
- 50
- Carefully read the question and answer accordingly. Determine the total number of bytes in the following
- 01 REC-1.
- 02 FIRST-GROUP.
- 03 A1 PIC X(4).
- 03 A2 PIC 99.
- 02 REDEFINES FIRST-GROUP.
- 03 A3 PIC 999.
- 03 A4 PIC 999.
- 02 THIRD-GROUP.
- 03 A5 OCCURS 5 TIMES PIC 99. 16
- Carefully read the question and answer accordingly. What is the result of the following code snippet?
- MOVE 1 TO VAR1
- MOVE 2 TO VAR2
- EVALUATE TRUE
- WHEN VAR1=1
- PERFORM PARA-1
- WHEN VAR2=2
- PERFORM PARA-2
- WHEN OTHER
- NEXT SENTENCE
- END-EVALUATE. Compile error for incorrect use of NEXT sentence
- Carefully read the question and answer accordingly. •Three data-names var1, var2 and var3 have the following WORKING-STORAGE data descriptions:
- 01 var1 PIC 99V999.
- 01 var2 PIC 9(4)V999.
- 01 var3 PIC 9(4)V99.
- If the following statement is executed with the values 10.261, 991.724 and 20.0 in var1, var2 and var3 respectively, the resulting what will be the value of var3
- ADD var1, var2 GIVING var3 ROUNDED ON SIZE ERROR, MOVE ZERO TO VAR3
- 1001.99
- Carefully read the question and answer accordingly. By considering the below code what will be the content of WS-RESULT at the end of the series of move instruction?
- 01 WS-VARIABLES.
- 05 WS-VAR1 PIC X(10) VALUE 'COBOL VSAM'.
- 05 WS-VAR2 PIC X(10).
- 05 WS-RESULT PIC X(5).
- PROCEDURE DIVISION.
- 1000-MAIN-PARA.
- MOVE 'JAVA' TO WS-RESULT.
- MOVE WS-VAR1 TO WS-VAR2.
- MOVE WS-VAR2 TO WS-RESULT.
- COBOL
- Carefully read the question and answer accordingly. Which of the following symbols can NOT be coded on position 7 of a COBOL program?
- /
- Carefully read the question and answer accordingly. For the below code snippet
- IF VAR1 > 3
- NEXT SENTENCE
- ELSE
- DISPLAY 'I AM IN ELSE PART'
- END-IF
- DISPLAY 'IMMEDIATE SENTENCE'.
- DISPLAY 'SECOND SENTENCE'.
- STOP RUN.
- What is the result when VAR1=4 SECOND SENTENCE
- Carefully read the question and answer accordingly. Select the correct statement concerning with PERFORM is TRUE
- The use of a PERFORM statement within the range of another PERFORM Statement is allowed,
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: V and . (Decimal point) picture characters may be used in the same data description entry
- Statement 2: BLANK WHEN ZERO is allowed only for numeric data items
- Which of the following is applicable for above?
- Statement 1 is false and 2 is true
- Carefully read the question and answer accordingly. 77 A PIC X(10) VALUE IS “PPQQRRSSTT”.In PROCEDURE DIVISION contains the statement EXAMINE P REPLACING ALL “PQR” BY “XYZ” .Indicate which one of the following is true
- The EXAMINE statement is incorrect as it is used to replace a single character by another single character but not a group of characters.
- Carefully read the question and answer accordingly. GO BACK is coded instead of STOP RUN in a standalone COBOL program. Execution result will be Similar to STOPRUN
- Carefully read the question and answer accordingly. What is the difference between "EXIT PROGRAM" and "END PROGRAM"?
- EXIT PROGRAM is used to end a called program, whereas END PROGRAM is used to end a nested program
- Carefully read the question and answer accordingly. Which of the following is used to set the size of a table, depending on the value of a particular variable data item?
- OCCURS DEPENDING ON
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: There is a limit to the number of INDEXES that can be specified to a TABLE entry.
- Statement 2: There is no limit to the number of dimensions that can be declared for tables.
- Which of the following is applicable with respect to above statements?
- Statement 1 is true, 2 is false
- Carefully read the question and answer accordingly. Which of the following is correct with respect to Static linked sub program?
- A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL.
- Carefully read the question and answer accordingly. State whether TRUE or FALSE
- The index value of an array can be passed thru LINKAGE SECTION
- F
- Carefully read the question and answer accordingly. What the STOP RUN verb will do in the COBOL program?
- It will terminate the execution of the program
- Carefully read the question and answer accordingly. State whether TRUE or FALSE
- The index value of an array can be passed thru LINKAGE SECTION
- F
- Carefully read the question and answer accordingly. State whether True of False
- GO TO verb is used to unconditionally transfer the control to elsewhere in the program. But it is not advisable to use in the program.
- T
- Carefully read the question and answer accordingly. Which of the following COBOL verbs can be used to initialize the Table indexes?
- SET
- Carefully read the question and answer accordingly. Called program can contain Call statements.
- T
- Carefully read the question and answer accordingly. Consider the following scenario:
- A subprogram PRG2 is compiled and is in LOAD MODULE USER2.TEST.LOAD2.
- Now, main program PRG1(that calls PRG2) is to be compiled into LOAD MODULE USER1.TEST.LOAD1.
- In compile JCL step, C1 is compile step and step L1 is link step.
- Which of the following ddname will be used to include reference to subprogram PRG2?
- //SYSLIB in step L1
- Carefully read the question and answer accordingly. Static calls are faster than dynamic calls. State True or False. T
- Carefully read the question and answer accordingly. State whether True or False
- REDEFINES clause is used to allow the same storage allocation to be referenced by different data
- T
- Carefully read the question and answer accordingly. Program-id should mandatorily be same as member name of COBOL program? State True or False.
- F
- Carefully read the question and answer accordingly. A paragraph name may consist of only numeric digits.
- T
- Carefully read the question and answer accordingly. List down the four Divisions of COBOL at high-level? Identification Division Environment Division Data Division Procedure Division
- Carefully read the question and answer accordingly. Comments or continuation can lie in area A of the cobol program. State True or False.
- F
- Carefully read the question and answer accordingly. State whether True of False
- Division Header or Section Header or Paragraph Header can lie in Area B.
- F
- Carefully read the question and answer accordingly. Which of the following defines AREA A in COBOL Program? Column 8-11
- Carefully read the question and answer accordingly. Which of the following clause is not mandatory while declaring Indexed files ? File Status
- Carefully read the question and answer accordingly. Indicate which one of the following is an invalid paragraph name PARA+5
- Carefully read the question and answer accordingly. If the program is not coded with PROGRAM-ID what will happen? The compilation will be failed with "Expected a program-name"
- Carefully read the question and answer accordingly. State True or False.
- The level number 01 is coded in Area B
- F
- If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
- ESDS
- In the COBOL SELECT statement for a KSDS what are the three possibilities for ACCESS ?
- ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC
- It is possible to access records randomly in ESDS
- T
- Is KEYS parameter defined for a ESDS cluster?
- F
- Select the types of datasets provided by Virtual Storage Access
- All of the listed above
- What are the types of VSAM files?
- 1. KSDS 2. ESDS 3. RRDS 4. LDS
- What is IMBED parameter in Define VSAM cluster?
- IMBED specifies that sequence set records are to be imbedded with the data in the data component of the cluster.
- Before loading a sequential flle to a VSAM KSDS, the input file must be sorted on key value.
- State True or False.
- T
- Control Interval contains Records free space, Control interval definition field(CIDF)and Record definition field(RDF). Which component is an "optional" one in the listed above?
- Records free space
- In RRDS records are accessed based on the RBA ?
- F
- Consider the following statements with regard to RRDS datasets in COBOL VSAM processing:
- Statement 1: In the COBOL SELECT clause for a RRDS file, Relative key is R-RRN and R-RRN is part of the record description.
- Statement 2: ACCESS mode is DYNAMIC can be used for a RRDS dataset.
- Which of the following is applicable for the above statements?
- Statement 1 is false, 2 is true
- State True or False.
- Records can be inserted in between the records in ESDS file ?
- F
- Is the integer values of both average and maximum are identical for fixed length records while defining the cluster RECORDSIZE(average maximum)] ?
- T
- Select the tool which is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing, printing, copying and maintain data?
- FILE AID
- List down the allowed rules in naming convention of VSAM datasets?
- 1) Length of file name should not be exceeded 44 characters 2) Letters allowed are (A-Z), (0-9),national characters(@,#,$), and hyphen(-)
- Choose the character of VSAM
- An access method that has a service program called AMS which consists of a utility program called IDCAMS.
- Which of the following option under ISPF you will choose to browse a VSAM KSDS dataset?
- TS option in ISPF, then F, F and option 1
- What is IMBED parameter in Define VSAM cluster ?
- IMBED specifies that sequence set records are to be imbedded with the data in the data component of the cluster.
- Can we have duplicate records in Alternate index file ?
- T
- If you wish to use the REWRITE command how should the VSAM file be opened ?
- It must be opened as INPUT-OUTPUT.
- How do you get dataset information for a VSAM file ?
- LISTCAT command
- Which of the following statements are true about CONTROL INTERVAL SPLIT ?
- The CI will split if one or more records is to be inserted and there is no enough free space in the CI.
- Approximately half of the records in the CI are transferred to a free CI and the record to be inserted is placed in the original CI.
- File Manager is a tool whic is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing and other file related operations
- T
- Is the integer values of both average and maximum are identical for fixed length records while defining the cluster RECORDSIZE(average maximum)] ?
- T
- Is KEYS parameter defined for a ESDS cluster ?
- F
- What is the BUFFERSPACE parameter while defining a cluster ?
- BUFFERSPACE is used to specify the minimum amount of buffer space required to process the dataset.
- What is the total number of extents for a VSAM dataset.
- 123
- Consider the following statements :
- Statement 1: VSAM KSDS files can have only one Primary index
- Statement 2: VSAM KSDS files can have only one Alternate index
- Which of the following is applicable for above?
- Statement 1 is true and 2 is false
- What is the default values in SHAREOPTS parameter coded ?
- SHAREOPTS(2 3)
- In RRDS records are accessed based on the RBA ?
- F
- Do all versions of the GDG have to be of the same record length ?
- F
- What is the Default parameters coded while creating a GDG?
- NOEMPTY and NOSCRATCH
- If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
- ESDS
- What is the ISPF command to execute the VSAM cluster definition?
- EXECUTE
- Select the tool which is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing, printing, copying and maintain data?
- FILE AID
- Which of the following defines a variable length table?
- 01 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
- What will happen If the below type of scenario code is getting compiled?
- Sub program id is wrongly given in sub program. The main program A is Calling the sub program B
- LINK EDIT will fail
- State whether TRUE or FALSE
- The index value of an array can be passed thru LINKAGE SECTION
- F
- In CALL BY CONTEXT method, sub program will not be able to modify passed parameters
- T
- Which of the following will cause SOC4 abend with respect to processing of TABLES?
- A Subscript or INDEX is out of bounds (for the table)
- Which section is used to pass data from one program to another program ?
- LINKAGE SECTION
- Which of the following is correct with respect to Static linked sub program?
- A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL.
- Consider the following COBOL program snippet:
- WORKING-STORAGE SECTION.
- 01 WS-CALLED-PGM PIC X(8) VALUE ‘PROGRAM2’.
- PROCEDURE DIVISION.
- MAIN-LOGIC.
- CALL WS-CALLED-PGM.
- STOP RUN.
- CALL is a valid statement in the above code.
- State True or False.
- T
- Which of the following is true about INDEX for a TABLE?
- The Index is defined with the table and represents a displacement into the table.
- SEARCH can include any relational test (<, >, =, <=, >=) or any compound conditional in the WHEN clause. State True or False.
- T
- Carefully read the question and answer accordingly. Consider the below VSAM control statements. Choose the correct option.
- DEFINE CLUSTER(NAME(USERID.VSAM.FILE) -
- VOLUME(TCHN01) -
- TRACKS(1 1) -
- CISZ(4096) -
- RECORDSIZE (80,80) -
- LINEAR -
- )
- Record size cannnot be specified.
- Carefully read the question and answer accordingly. Which of the following parameter of DEFINE ALTERNATE INDEX ensures that alternate indexes are automatically updated when insertions are made to VSAM KSDS? UPGRADE
- Carefully read the question and answer accordingly. In the following Export command, what does the TEMPORARY command do?
- //SYSIN DD *
- EXPORT MVS802.HRTITLE.TABLE -
- OUTFILE(BACKUP) -
- TEMPORARY
- It indicates the source cluster remains after the portable copy is created
- Carefully read the question and answer accordingly. Point and Shoot field is a feature by which one can place a cursor at it and press ENTER to perform the action.
- State True or False.
- T
- Carefully read the question and answer accordingly. If the command line position needs to be changed, which option should be used in the Primary Option Menu in ISPF? NO ANSWER GIVEN
- Carefully read the question and answer accordingly. In a dataset having 15 records, which TSO command will help in reaching line no 5 directly?
- LOCATE 5
- It is possible to send a message to the mainframe user who has not logged on currently by using TSO command
- T
- Carefully read the question and answer accordingly. State TRUE or FALSE
- While creating the data set in 3.2 option, if I don’t give the dataset name in " " then the first qualifier will get added and the data set name will be as <USERID>.<USERID>.PS
- T
- Carefully read the question and answer accordingly. Which of the following can be changed using Option 0 of ISPF/PDF primary option menu(ISPF PARMS)?
- Terminal type
- Carefully read the question and answer accordingly. What will happen in the backend when we do compress the data sets by using Z line command?
- The data set will be compressed to discard all old versions of data set members, to keep only the most recent version of all data set members
- Carefully read the question and answer accordingly. What is the expansion of TSO/ISPF Time Sharing Option Interactive System Productivity Facility
- Carefully read the question and answer accordingly. What is the TSO block line Command to get convert all the uppercase alphabetic characters to lowercase
- Issue the block line command LCC
- Carefully read the question and answer accordingly. Which of the following option under ISPF you will choose to browse a VSAM KSDS dataset? TS option in ISPF, then F, F and option 1
- Carefully read the question and answer accordingly. What is REPLICATE parameter in Define VSAM cluster ?
- REPLICATE specifies that VSAM should write each index record on a track as many times as it will fit.
- Carefully read the question and answer accordingly. In a large VSAM KSDS dataset, how do you know the number of records deleted since its creation?
- LISTCAT with option ENTRIES and ALL gives the statistics including number of records deleted
- Carefully read the question and answer accordingly. State True or False
- The ERASE parameter specifies that when the cluster is deleted, the space occupied by the cluster should be physically erased by overwriting the space to freeing the space for reuse
- T
- Carefully read the question and answer accordingly. What is the BUFFERSPACE parameter while defining a cluster ?
- BUFFERSPACE is used to specify the minimum amount of buffer space required to process the dataset.
- Carefully read the question and answer accordingly. Control Interval contains
- Records free space
- Control interval definition field(CIDF)
- and Record definition field(RDF).
- Which component is an "optional" one in the listed above?
- Records free space
- Carefully read the question and answer accordingly. State True or False
- File Manager is a tool whic is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing and other file related operations
- T
- Carefully read the question and answer accordingly. It is possible to access records randomly in ESDS
- T
- Carefully read the question and answer accordingly. Consider the following statements :
- Statement 1: VSAM KSDS files can have only one Primary index
- Statement 2: VSAM KSDS files can have only one Alternate index
- Which of the following is applicable for above?
- Statement 1 is true and 2 is false
- Carefully read the question and answer accordingly. Is PRINT prints the VSAM dataset contents ?
- T
- Carefully read the question and answer accordingly. Consider the following statements with regard to ESDS datasets in COBOL VSAM processing:
- Statement 1: An ESDS dataset can be used in Dynamic access mode.
- Statement 2: Records can be inserted in the middle of an ESDS dataset using INSERT statement.
- Which of the following is applicable for the above statements?
- Statement 1 and 2 are both false
- carefully read the question and answer accordingly. In the following Export command, what does the TEMPORARY command do?
- //SYSIN DD *
- EXPORT MVS802.HRTITLE.TABLE -
- OUTFILE(BACKUP) -
- TEMPORARY
- It indicates the source cluster remains after the portable copy is created
- Carefully read the question and answer accordingly. Which parameter should be coded to copy first 5 records from RRDS file to KSDS file using REPRO command ? FROMNUMBER(1) TONUMBER(5)
- Carefully read the question and answer accordingly. What is the use of the PATH command?
- The PATH is used to access a record in base cluster by means of an ALTERNATEINDEX.
- Is it possible to delete non-vsam dataset using IDCAMS utiltity ?
- T
- Carefully read the question and answer accordingly. Which of the following command is used along with REPRO to set the alternate key value as unique?
- UNIQUEKEY
- Carefully read the question and answer accordingly. Which of the following parameter of DEFINE ALTERNATE INDEX ensures that alternate indexes are automatically updated when insertions are made to VSAM KSDS? UPGRADE
- Carefully read the question and answer accordingly. Consider the following scenario:
- EMPMST is an Employee master VSAM ESDS file and TRAN is a VSAM ESDS transaction file containing new employee joinee data.
- emp-no is the key for both the files. Both the files are sorted on emp-no.
- A COBOL file matching program takes EMPMST and TRAN as input files and a NEW-EMPMST is created which will have both existing and new employee records.
- During the file match based on emp-no, when emp-no of master file is greater than that in the transaction file, a new record based on transaction record is created in the new master file.
- Which of the following gives the correct file(s) that is(are) read to get the next record?
- Transaction file only
- Carefully read the question and answer accordingly. You have to copy 500 records, starting from 2000th record of a KSDS file using REPRO command.
- Which of the parameter listed below can be used to achieve this?
- SKIP (1999) COUNT (500)
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: The BLDINDEX command always involves a sorting operation.
- Statement 2: Before BLDINDEX command is used, the base cluster must be loaded with data.
- Which of the following is applicable for above?
- Statement 1 and 2 both are true
- arefully read the question and answer accordingly. In the VSAM file definition using IDCAMS, FREESPACE is defined as below.
- FREESPACE (10, 20). What does 10 and 20 stand for?
- 10% of CI free, 20% of CI in CA is free
- Carefully read the question and answer accordingly. Consider the below code snippet
- //SYSIN DD *
- DEFINE CLUSTER(NAME(MYID.TEST.KSDS) -
- RECORDSIZE(80,80) -
- CISZ(512) -
- REUSE -
- KEYS(3,0) -
- TRACKS(2,3))
- /*
- INDEXED is not given for the specified KSDS in SYSIN card. What will happen after the job completed?
- Data and index component for the specified KSDS will get created
- Carefully read the question and answer accordingly. What is the purpose of the START command ?
- To position a current record pointer on a desired record.
- Carefully read the question and answer accordingly. Purpose of DUMP default parameter coded in PRINT command ?
- It specifies that each byte in the logical record is to be printed in both hexa decimal and character format.
- Carefully read the question and answer accordingly. An alternate index has been created with the alternate key length as 6 and its structure is as below.
- 0 to 4 - ?
- 5 to 10 - Alternate key
- 11 to remaining - Other information
- Which component is occupied by first 5 bytes?
- Control Information
- Carefully read the question and answer accordingly. Consider the following statements and select the appropriate answer:
- Statement 1:
- KSDS Records can be copied in REPRO by using FROMKEY and TOKEY
- Statement 2:
- ESDS Records can be copied in REPRO by using FROMADDRESS and TOADDRESS
- Statement 3:
- RRDS Records can be copied in REPRO by using FROMADDR and TOADDR
- Statement 1 & 2 :Both are True
- Carefully read the question and answer accordingly. In the following VSAM definition, what is the length of the Key in KSDS?
- DEFINE CLUSTER -
- (NAME (XIND.NLT.CLUSTER) -
- CYLINDER (5 1) -
- VOLUMES (WORK01) -
- RECORDSIZE (120 124) -
- KEYS (8 24) -
- INDEXED)
- 8
- Records can be copied from VSAM file to PS file using REPRO command.
- T
- Carefully read the question and answer accordingly. Which of the following is contained in the index component of a VSAM dataset?
- Record Key and record location number
- Carefully read the question and answer accordingly. Which option specified to Delete a VSAM non-empty clusters.
- FORCE
- Carefully read the question and answer accordingly. Which field in SQLCA contains a return code indicating the status of the most recent SQL statement?
- SQLSTATE
- Carefully read the question and answer accordingly. Consider the following COBOL-DB2 code:
- EXEC SQL
- SELECT EMPID, EMPNAME INTO :WS-ARR1
- FROM EMP
- WHERE EMPID=:WS-EMP-ID
- END-EXEC.
- (Assume that WS-ARR1 is the array which has the DCLGEN host variable structure created for EMP table with the two columns EMPID, EMPNAME)
- Which of the following happens when you execute the above code?
- This code runs successfully without any warnings or errors.
- Carefully read the question and answer accordingly. What additional copybooks would you expect to see in a COBOL/DB2 program as opposed to a COBOL program with no DB2 access?
- SQLCA
- Carefully read the question and answer accordingly. What is the sql error code will throw when a table is undefined with a column name ?
- -204
- Carefully read the question and answer accordingly. Which is the DB2 error routine commonly used to trap the errors ?
- DSNTIAR
- Carefully read the question and answer accordingly. Select the option with respect to Host Variables
- Host variables can be used as output data areas in the INTO clause of the SELECT and FETCH statements
- Carefully read the question and answer accordingly. Consider the following:
- Assume a table TABLEA having 1000 rows.
- If you include the statement SELECT COLUMNA FROM TABLEA in an embedded SQL application program, and no cursor is declared
- What is the result of the executed query?
- Program gives error and SQL error code -811 is set
- Carefully read the question and answer accordingly. When should we execute a REBIND rather than a BIND?
- After the execution of a RUNSTATS.
- Carefully read the question and answer accordingly. Which is the most efficient way for specifying the table's owner name in a cobol program?
- Define it in the Plan and not in the program.
- Carefully read the question and answer accordingly. What is the expansion of SQLCA?
- SQL Communication Area
- Carefully read the question and answer accordingly. What is the command to see the active ISPF logical sessions? issue the command LIST and press F9
- Carefully read the question and answer accordingly. Which block command is used to delete the set of codes? DD
- Carefully read the question and answer accordingly. SuperC supports tape data sets.State True or False.
- F
- Carefully read the question and answer accordingly. How to edit a dataset in view mode? REPLACE .zf .zl <dataset name>
- Carefully read the question and answer accordingly. REN is used to renumber the data starting at 100 and incrementing by 100 T
- Carefully read the question and answer accordingly. How to compare one field position in input file against the field position in the output file. Go to Option 3.13 Issue COMPCOLN & COMPCOLO for Input & Output field positions
- Carefully read the question and answer accordingly. Which of the following can be used to compare a specific column in two files on ISPF?
- ISPF Menu option 3.13
- carefully read the question and answer accordingly. State TRUE or FALSE
- It is possible to cut more than one set of code snippet into clipboard T
- Carefully read the question and answer accordingly. How to view/edit the clipboard ? CUT DISPLAY
- Carefully read the question and answer accordingly. Name the TSO command used to identify the TSO Region ( Development,
- Production, or other TSO regions) are currently logged in ? Issue SAREA in the command line
- Carefully read the question and answer accordingly. List down the four Divisions of COBOL at high-level?
- Identification Division Environment Division Data Division Procedure Division
- Carefully read the question and answer accordingly. Which of the following clause is not mandatory while declaring Indexed files ?
- File Status
- Carefully read the question and answer accordingly. Program-id should mandatorily be same as member name of COBOL program? State True or False.
- F
- Carefully read the question and answer accordingly. Which of the following defines AREA A in COBOL Program?
- Column 8-11
- Carefully read the question and answer accordingly. Comments or continuation can lie in area A of the cobol program. State True or False.
- F
- Division Header or Section Header or Paragraph Header can lie in Area B.
- F
- Carefully read the question and answer accordingly. Which of the following defines AREA B in COBOL Program?
- Column 12-72
- Carefully read the question and answer accordingly. State True or False.
- The level number 01 is coded in Area B
- F
- Carefully read the question and answer accordingly. If the program is not coded with PROGRAM-ID what will happen?
- The compilation will be failed with "Expected a program-name"
- Carefully read the question and answer accordingly. Select the possible open modes for sequential file?
- INPUT and EXTEND
- Carefully read the question and answer accordingly. Consider the following OPEN statement:
- OPEN EXTEND IN-FILE.
- Identify correct statements from the following related to above.
- If the organization of IN-FILE is sequential, records can be added at the end.
- Carefully read the question and answer accordingly. Consider the following declaration in the File section of a program.
- 05 CALENDAR-DATE PIC X(6).
- 10 CALENDAR-DD PIC 99.
- 10 CALENDAR-MM PIC 99.
- 10 CALENDAR-YY PIC 99.
- Which of the following statements is true about the declarations?
- Incorrect, since PIC clause cannot be specified for a group item
- Carefully read the question and answer accordingly. The Procedure Division of a program contains the statement
- WRITE MASTER-REC
- Which of the OPEN mode must not be used for the same?
- OPEN INPUT
- Carefully read the question and answer accordingly. State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
- F
- Carefully read the question and answer accordingly. What is the file status code for "FILE NOT FOUND"? 13
- Carefully read the question and answer accordingly. Which mode is used to OPEN a file for writing alone?
- OUTPUT EXTEND
- Carefully read the question and answer accordingly. Select the correct option which related to the below statement
- "Deleting a record in a sequential file is ..."
- Not Possible
- In sequential file organization, records cannot be deleted. The record last read by the Read statement is deleted in case of sequential access mode.
- carefully read the question and answer accordingly. State True or False
- An empty file can be opened in EXTEND mode in a Cobol program and it will not throw any error while running.
- T
- Carefully read the question and answer accordingly. There is a file whose ORGANIZATION is INDEXED. You want to read records from the file in random fashion as well as sequentially.
- Which of the following access mode would you specify?
- DYNAMIC
- Carefully read the question and answer accordingly. Static calls are faster than dynamic calls. State True or False.
- T
- Carefully read the question and answer accordingly. State whether True or False
- REDEFINES clause is used to allow the same storage allocation to be referenced by different data
- T
- Carefully read the question and answer accordingly. Which of the following COBOL verbs can be used to initialize the Table indexes?
- SET
- Carefully read the question and answer accordingly. SEARCH can include any relational test (<, >, =, <=, >=) or any compound conditional in the WHEN clause. State True or False.
- T
- Carefully read the question and answer accordingly. GO BACK is coded instead of STOP RUN in a standalone COBOL program. Execution result will be
- Similar to STOPRUN
- Carefully read the question and answer accordingly. Statement I: SEARCH and SEARCH ALL can be used to search for an element in a table that satisfies a given criteria. Statement II: SEARCH ALL is faster than SEARCH. Which of the above statements is true I & II
- Carefully read the question and answer accordingly. How can we ensure that when the referenced sub-program is called for the next time, it will be entered in its initial state?
- Use CANCEL command
- Carefully read the question and answer accordingly. How does static call differ from Dynamic call?
- Static call is bound with calling pgm at link edit time whereas dynamic call is loaded from pgm library and static is a part of executable load module
- Carefully read the question and answer accordingly. kWhich of the following CALL statements is incorrect ?
- CALL SUB-PGM USING VAR-1 UNTIL VAR-1>10
- Carefully read the question and answer accordingly. Consider the following scenario:
- A subprogram PRG2 is compiled and is in LOAD MODULE USER2.TEST.LOAD2.
- Now, main program PRG1(that calls PRG2) is to be compiled into LOAD MODULE USER1.TEST.LOAD1.
- In compile JCL step, C1 is compile step and step L1 is link step.
- Which of the following ddname will be used to include reference to subprogram PRG2?
- //SYSLIB in step L1
- Carefully read the question and answer accordingly. What does the call mean by the phrase "caller and calling program share the same memory"?
- Call by reference
- Carefully read the question and answer accordingly. Which of the following is true about INDEX for a TABLE?
- The Index is defined with the table and represents a displacement into the table
- The index value of an array can be passed thru LINKAGE SECTION
- F
- Carefully read the question and answer accordingly. Consider the following statements:
- SET INDEX TO 8.
- SET INDEX DOWN BY 4.
- SET INDEX TO 4.
- SET INDEX UP BY 1.
- SET INDEX DOWN BY 3.
- What is value of INDEX after executing the above statements?
- 2
- Carefully read the question and answer accordingly. Determine the bytes
- 01 REC-1.
- 01 L PIC X(6).
- 02 M REDEFINES L.
- 03 N OCCURS 6 TIMES PIC 9.
- 02 O OCCURS 4 TIMES.
- 03 P PIC X(5).
- 03 Q PIC 999.
- 38
- Carefully read the question and answer accordingly. What will happen If the below type of scenario code is getting compiled?
- Sub program id is wrongly given in sub program. The main program A is Calling the sub program B
- LINK EDIT will fail
- Carefully read the question and answer accordingly. ON SIZE ERROR can be used with
- All of the above
- Carefully read the question and answer accordingly. Which ABEND will occur when the un-initialized numeric item is used in the COMPUTE or MOVE statements?
- S0C7
- Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
- 01 WS-SWITCHES PIC 9(2).
- 88 C01-TO002 VALUE 10.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- DISPLAY "WS-SWITCHES :" WS-SWITCHES
- DISPLAY "C01-TO002 :" C01-TO002
- STOP RUN.
- consider the above code snippet and select the appropriate option.
- The compilation will fail stating that "C01-TO002" was defined as a type that was invalid in this context." because of the 88 level variable cannot be displayed.
- Carefully read the question and answer accordingly. Consider the below statements and choose the correct options
- By using INITIALIZE statement in Cobol
- Statement 1:Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES
- Statement 2: Numeric, Numeric edited items & FILLER set to ZERO
- Statement 3: OCCURS DEPENDING ON items left untouched
- Statement 1, Statement 3 are TRUE Statement 2 is FALSE
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-RESULT PIC 9(2) VALUE 0.
- 05 WS-A PIC 9(2).
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- PERFORM VARYING WS-A FROM 1 BY 1 UNTIL WS-A = 10
- COMPUTE WS-RESULT = WS-RESULT + 1
- END-PERFORM.
- DISPLAY WS-RESULT
- What is the content of WS-RESULT after execution of the above code snippet?
- 9
- Carefully read the question and answer accordingly. Four data-names DATA-1, DATA-2, DATA-3 and
- DATA-4 are defined as following
- Data-name PIC clause Value Initialized to
- DATA-1 999 015
- DATA-2 999 005
- DATA-3 999 000
- DATA-4 999 000
- On executing the PROCEDURE DIVISION statement
- DIVIDE DATA-1 INTO DATA-2 GIVING DATA-3
- REMAINDER DATA-4
- These data-names will respectively assume values:
- 15,5,0,5
- Carefully read the question and answer accordingly. 01 WS-OUTPUT PIC ZZZZVZZ.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE 0 TO WS-OUTPUT.
- DISPLAY "OUTPUT WILL BE : " WS-OUTPUT.
- By considering the above code snippet what will be the value of WS-OUTPUT?
- OUTPUT WILL BE : bbbbbb Here b is considered as blank space
- Carefully read the question and answer accordingly. Consider 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 50 times
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- 01 WS-GROUP-ITEM
- 05 WS-AMOUNT-1 PIC 99 USAGE COMP VALUE 50.
- 05 WS-AMOUNT-2 PIC 9(4)V99 USAGE COMP.
- MOVE ZEROS TO WS-GROUP-ITEM.
- ADD 50 TO WS-AMOUNT-1.
- What is the value stored in WS-AMOUNT-1 after executing the above statements?
- 50
- Carefully read the question and answer accordingly. Consider the following COBOL data definition:
- 01 WS-TRANSACTION-RECORD.
- 05 WS-STATUS PIC X.
- 88 VALID-STATUS VALUES "A", "B", "C", "D".
- 88 MARRIED VALUE "A".
- 88 SINGLE VALUE "B".
- 88 SEPARATED VALUE "C".
- 88 DIVORCED VALUE "D".
- Four of the five IF conditions below are equivalent. Identify the odd one.
- IF MARRIED AND SINGLE AND SEPARATED AND DIVORCED
- Carefully read the question and answer accordingly. The picture of SAMPLE IS
- 02 SAMPLE PIC 999V99
- What will be the content of raffles when the following data is named to it?
- 7892^23
- 89223
- Carefully read the question and answer accordingly. What parameter in job card decides the output queue
- MSGCLASS
- Carefully read the question and answer accordingly. ____________ is the identifier used to define the temporary dataset in a JCL.
- &&
- Carefully read the question and answer accordingly. Consider the below Space parameter.
- SPACE=(TRK,(1,1),CONTIG)
- If CONTIG is specified and contiguous space is not available, what will happen ?
- System terminates the job step
- Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
- MSGLEVEL = (1,1)
- Carefully read the question and answer accordingly. Which of the following statements are false with regard to PEND statement in JCL?
- PEND is mandatory for cataloged procedure.
- Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
- //PRINTSS JOB CLASS=A,
- // MSGCLASS=X,MSGLEVEL=(1,1),
- // NOTIFY=&SYSUID
- How do you print the job stream as a sysout?
- TYPRUN=COPY
- Carefully read the question and answer accordingly. Consider the following Job card:
- //TSOCABX JOB (00010,1020983),'TSOCAB'
- Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
- ,CLASS=D
- Carefully read the question and answer accordingly. Which DISP parameter to be coded for temporary datasets ?
- DISP=(NEW,PASS)
- Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library? By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
- Carefully read the question and answer accordingly. Which of the following modes, when used with the LOCK TABLE statement, will cause the DB2 Database Manager to acquire a table-level lock that prevents other concurrent transac-tions from accessing data stored in the table while the owning transaction is active?
- EXCLUSIVE MODE
- Carefully read the question and answer accordingly. Which one is true for COMMIT?
- Both B and C are correct.
- Carefully read the question and answer accordingly. Select the appropriate option with respect to Read Stability
- RS holds page and row locks until a COMMIT point is reached. But other programs can INSERT new data
- Carefully read the question and answer accordingly. Select the appropriate options with respect to CHECKPOINT
- This is the restart logic in the program which will basically stores the information about the last data committed values so that during the application failure, program can be restarted from the failure point.
- Carefully read the question and answer accordingly. Which of the following DB2 UDB isolation levels will only lock rows during read process-ing if another transaction tries to drop the table the rows are being read from?
- Uncommitted Read
- Carefully read the question and answer accordingly. Which of the following operation enables the user to undo changes made to a database?
- Rollback
- Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
- Repeatable Read
- Carefully read the question and answer accordingly. The data changes can be made permanent by using COMMIT. It also permits data to be accessed by other applications who can reference the committed data
- T
- Carefully read the question and answer accordingly. Which of the following operation enables the user to undo changes made to a database?
- Rollback
- Carefully read the question and answer accordingly. Which of the following statements are true related to isolation levels?
- Statement 1 : CS - Releases the lock on a page after use
- Statement 2: RR - Retains all locks acquired till end of transaction
- Both the statements are true
- Carefully read the question and answer accordingly. Which of the following modes, when used with the LOCK TABLE statement, will cause the DB2 Database Manager to acquire a table-level lock that prevents other concurrent transac-tions from accessing data stored in the table while the owning transaction is active? EXCLUSIVE MODE
- Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False.
- F
- Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database ROLLBACK
- Carefully read the question and answer accordingly. 6 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued? The 6 rows inserted will be not be present in the table.
- Carefully read the question and answer accordingly. Which of the following happens when a ROLLBACK is issued?
- All open cursors are closed
- Carefully read the question and answer accordingly. Which of the following occurs if an application ends abnormally during an active unit of
- work?
- The unit of work is rolled back
- Carefully read the question and answer accordingly. Which of the following happens when LOCKSIZE IS ANY is specified and the application program crosses the limit of maximum number of row or page level lock? LOCK ESCALATION process is handled by DB2
- Carefully read the question and answer accordingly. A declared temporary table is used for which of the following purposes? Storing intermediate results
- Carefully read the question and answer accordingly. If the SQLCA is included in the program, which of the following host-variables is NOT known and
- as such unavailable for the program?
- SQLNUM
- Carefully read the question and answer accordingly. When using DCLGEN to generate a table declaration, which information concerning this table
- is NOT available in the generated output?
- The primary key of the table.
- Carefully read the question and answer accordingly. Which is the field in SQLCA contains the number of rows affected by a DB2 Insert/Delete after the execution of the query. SQLERRD
- Carefully read the question and answer accordingly. Which of the following are declarations that need to be made in a DB2 program, to use DSNTIAR?
- ERROR-MESSAGE area and Total length of the message area in COMP value.
- Carefully read the question and answer accordingly. Which of the following statements are valid about data retrieval paths?
- To use an attribute as a data retrieval path, an index should be set on the attribute
- arefully read the question and answer accordingly. Which of the following is the function of the DB2 pre-compiler?
- Replaces all the SQL statements with host language CALL statements
- Carefully read the question and answer accordingly. An embedded SQL statement returns a sqlcode of - 811, with a message of:
- THE RESULT OF AN EMBEDDED SELECT STATEMENT IS A TABLE OF MORE THAN ONE ROW, OR
- THE RESULT OF THE SUBQUERY OF A BASIC PREDICATE IS MORE THAN ONE VALUE
- What might be the problem and solution, without changing the logical result of the SQL query?
- The SQL statement was not a singleton select. A cursor will be needed.
- Carefully read the question and answer accordingly. With respect to the below statements select the appropriate answer
- EXEC SQL
- WHENEVER NOT FOUND
- CONTINUE
- END-EXEC.
- This is the valid statement. WHENEVER is used to direct the processing in the SQL statements
- Carefully read the question and answer accordingly. The precompilation of DB2 program throws some error.
- Which of the following does the above indicate?
- Incorrect use of SQL statements
- Carefully read the question and answer accordingly. Which of the following is correct with respect to 01 level entries in data division?
- 01 level entries can appear in any section of the Data Division
- Carefully read the question and answer accordingly. Which of the following words is NOT a COBOL reserved word?
- VARIABLE
- Carefully read the question and answer accordingly. Level 77 can be used to define group items.
- F
- Carefully read the question and answer accordingly. Which of the following is true with respect to SQL communication area in COBOL program?
- It is a data structure that must be included in any host-language program using SQL. It is used to pass feedback about the sql operations to the program. Fields are return codes, error messages, handling codes and warnings.
- Carefully read the question and answer accordingly. An inline PERFORM ____________________ .
- must be terminated with an END-PERFORM.
- Carefully read the question and answer accordingly. Size of -9(5).999 is
- 10
- Carefully read the question and answer accordingly. State True or False.
- PICTURE clauses are not
- specified on the group level.
- T
- Carefully read the question and answer accordingly. A variable of size X(20) can be redefined to X(40)
- T
- Carefully read the question and answer accordingly. Which of the following is correct in-line PERFORM?
- PERFORM MOVE A TO B END-PERFORM.
- Carefully read the question and answer accordingly. In UNSTRING statement, characters of sending field will be transferred to receiving field including delimiter F
- Carefully read the question and answer accordingly. 6 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued?
- The 6 rows inserted will be not be present in the table.
- Carefully read the question and answer accordingly. How many bytes does PIC S9(10)V99 COMP-3 occupy?
- 6
- Carefully read the question and answer accordingly. Which of the following is not a valid scope terminator in COBOL?
- END.
- Carefully read the question and answer accordingly. What is the maximum size of alphanumeric literals in COBOL ?
- 160
- Carefully read the question and answer accordingly. DELIMITED BY SIZE in STRING fucntion, makes the transfer of characters from source field to receiving field to stop once a blank is encountered F
- Carefully read the question and answer accordingly. Size of -9(5).999 is
- 10
- Carefully read the question and answer accordingly. After instructions are executed by a PERFORM para statement, control returns to the statement directly following the PERFORM.
- State True or False.
- T
- Carefully read the question and answer accordingly. Which level items may be used to represent fields within a record ?
- 02 to 49
- Carefully read the question and answer accordingly. State True or False.
- COMP-1 stores binary data.
- F
- Carefully read the question and answer accordingly. Which if the following is a syntactically proper COBOL if statement?
- IF AMT is less Than ZERO THEN ADD 1 TO Somevalue ELSE ADD 7 to SomeOtherValue END-IF
- Carefully read the question and answer accordingly. A pre-defined function called by a built-in function reference is called ________________
- Intrinsic function
- Carefully read the question and answer accordingly. Minimize number of join conditions in WHERE clause and Maximize number of tables joined in FROM clause for better performance.
- State True or False.
- F
- Carefully read the question and answer accordingly. Which of the following tools can be used to automate table reorganization operations?
- Task Center
- Carefully read the question and answer accordingly. Please select the appropriate option after read the below data base related statements.
- Statement 1: Data is actually stored in a structure known as a table space
- Statement 2: Each table space correlates to one or more individual physical VSAM datasets in the DASD volumes of Storage Group.
- Statement 3: Each table space contains only one table
- Statement 1 & 2 are TRUE Statement 3 is FALSE
- Carefully read the question and answer accordingly. what is the name of the default db2 catalog database?
- DSNDB06
- Carefully read the question and answer accordingly. Besides on TABLE and TABLESPACE level, on what level can implicit locks be placed by DB2?
- On ROW, PAGE and PARTITION level.
- Carefully read the question and answer accordingly. State TRUE or FALSE
- QMF is a Query Management Facility which helps to support online execution of SQL statements from TSO terminal
- T
- Carefully read the question and answer accordingly. 1) Database is a group of logically related Tablespaces and Indexspaces.
- 2) Table space is a logical address space on secondary storage to hold one or more tables.
- 3) Table that is physically stored within a table space contains one or more stored records.
- 4) Table contains one stored record per row in the base table.
- All of the above statements are Correct.
- State True or False.
- T
- Carefully read the question and answer accordingly. State TRUE or FALSE
- RESTRICT: Disallows the deletion of the primary key row if any foreign keys relate to that row.
- T
- Carefully read the question and answer accordingly. Which statement is TRUE with refer to VIEW of the table?
- A VIEW never stores data.
- Carefully read the question and answer accordingly. Which of the following is used to indicate a column will not accept NULL values and can be referenced in another table's foreign key specification?
- Unique constraint
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),(0,LE,STEP01),(4,LT))
- Consider if the STEP01 executes to give return code as 0.
- Whether the STEP03 will bypass ?
- T
- Carefully read the question and answer accordingly. SORT Fields = (6, 10,CH,D) .
- What does this statement represent?
- Key length is 6, starts at 10th position, comparing type is character, arrange in descending order.
- Carefully read the question and answer accordingly. Which DFSORT command is used to specify the number of records to be skipped before sorting or copying begins?
- SKIPREC
- Carefully read the question and answer accordingly. Consider the below sort card and choose the correct option.
- SORT FIELDS=(1,3,ZD,A)
- SUM FIELDS=(1,3,ZD)
- Cannot Sum sort keys.
- Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL?
- All of the listed options
- Carefully read the question and answer accordingly. Consider Space= (27998,(20000,1000),RLSE, CONTIG). It requests that primary space be allocated on contiguous cylinders and tracks.State True or False
- T
- Carefully read the question and answer accordingly. We can give In stream data in a PROC F
- Carefully read the question and answer accordingly. Which parameter can not be used on a JOB statement?
- JCLLIB
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: There is a limit to the number of INDEXES that can be specified to a TABLE entry.
- Statement 2: There is no limit to the number of dimensions that can be declared for tables.
- Which of the following is applicable with respect to above statements?
- Statement 1 is true, 2 is false
- Carefully read the question and answer accordingly. State whether True of False
- GO TO verb is used to unconditionally transfer the control to elsewhere in the program. But it is not advisable to use in the program.
- T
- Carefully read the question and answer accordingly. Which of the following defines a variable length table?
- 01 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
- Carefully read the question and answer accordingly. Which of the following is true about INDEX for a TABLE?
- The Index is defined with the table and represents a displacement into the table.
- Carefully read the question and answer accordingly. What is the difference if the sub program is coded with EXIT PROGRAM and the sub program is coded with GO BACK ? EXIT PROGRAM : Stop executing the program GO BACK : The control will go back to the main program
- Carefully read the question and answer accordingly. Determine the bytes
- 01 REC-1.
- 01 L PIC X(6).
- 02 M REDEFINES L.
- 03 N OCCURS 6 TIMES PIC 9.
- 02 O OCCURS 4 TIMES.
- 03 P PIC X(5).
- 03 Q PIC 999.
- 38
- Carefully read the question and answer accordingly. If you were passing a table via linkage
- Index is preferable
- Carefully read the question and answer accordingly. GO BACK is coded instead of STOP RUN in a standalone COBOL program. Execution result will be
- Similar to STOPRUN
- Carefully read the question and answer accordingly. Which section is used to pass data from one program to another program ?
- LINKAGE SECTION
- Carefully read the question and answer accordingly. In nested programs, Linkage section is not mandatory even if calling program is passing some data.
- State True or False.
- F
- Carefully read the question and answer accordingly. State whether True of False
- Division Header or Section Header or Paragraph Header can lie in Area B.
- F
- Carefully read the question and answer accordingly. State True or False.
- The level number 01 is coded in Area B
- F
- Carefully read the question and answer accordingly. Program-id should mandatorily be same as member name of COBOL program? State True or False.
- F
- Carefully read the question and answer accordingly. If the program is not coded with PROGRAM-ID what will happen?
- The compilation will be failed with "Expected a program-name"
- Carefully read the question and answer accordingly. State True or False
- An empty file can be opened in EXTEND mode in a Cobol program and it will not throw any error while running.
- T
- Carefully read the question and answer accordingly. State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
- F
- arefully read the question and answer accordingly. Which condition checks are allowed with the following variable?
- 01 END-OF-FILE PIC X(1).
- 88 EOF VALUE 'N'.
- 88 N-EOF VALUE 'Y'.
- All of the listed above
- Carefully read the question and answer accordingly. Association between file names and corresponding file medium is done in
- File-Control Paragraph, I-O Section and Environment Division
- Carefully read the question and answer accordingly. For each file you want to read in a COBOL program you have to provide a set of declarations
- and instructions. Select the appropriate order?
- (a) SELECT infile ASSIGN TO
- (b) READ infile
- (c) OPEN INPUT infile
- (d) CLOSE infile a, c, b, d
- Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done? OPEN in I-O mode and REWRITE
- Carefully read the question and answer accordingly. Which mode is used to OPEN a file for writing alone?
- OUTPUT EXTEND
- Carefully read the question and answer accordingly. What does file status 22 signify ?
- Invalid Key - Duplicate Key found
- Carefully read the question and answer accordingly. Indicate which one of the following will not have the INVALID KEY Phrase when used in connection with sequentially accessed relative file in a PROCEDURE DIVISION with out any declarative section.
- REWRITE STATEMENT
- Carefully read the question and answer accordingly. Which of the following files can be opened in all the 4 modes?
- Sequential
- Carefully read the question and answer accordingly. What is the file status code for "FILE NOT FOUND"?
- 13
- Carefully read the question and answer accordingly. Select the correct option which related to the below statement
- "Deleting a record in a sequential file is ..."
- Not Possible
- Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done? OPEN in I-O mode and REWRITE
- Carefully read the question and answer accordingly. State True of False
- Multiple keys (Primary & secondary) can be maintained by Indexed files.
- T
- Carefully read the question and answer accordingly. What does File status 92 signify?
- File is opened for input and an attempt is made to write to it.
- Carefully read the question and answer accordingly. State True of False
- Multiple keys (Primary & secondary) can be maintained by Indexed files.
- T
- arefully read the question and answer accordingly. Select the appropriate option which is not suitable, if the file is opened in the below mode
- WRITE
- Carefully read the question and answer accordingly. How to update a key field of a record in an INDEXED file?
- The record should be deleted and reinserted with the new key field.
- Carefully read the question and answer accordingly. FD FILE1-DATA
- RECORDING MODE F
- BLOCK CONTAINS 0 RECORDS.
- 01 S1-FILE1-DATA PIC X(400).
- 01 WS-USING-FILE1 REDEFINES S1-FILE1-DATA.
- Is the above file section declaration syntatically correct ?
- F
- Carefully read the question and answer accordingly. Copybook can contain only file layouts. State True or False.
- F
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- FILE-CONTROL.
- SELECT EMP-FILE ASSIGN TO DISK
- ORGANIZATION IS INDEXED
- ACCESS MODE IS DYNAMIC.
- There is one error in the above code. Choose the error statement from the following options.
- RECORD KEY clause must be specified for an indexed sequential file.
- Carefully read the question and answer accordingly. Consider the following OPEN statement:
- OPEN EXTEND IN-FILE.
- Identify correct statements from the following related to above.
- If the organization of IN-FILE is sequential, records can be added at the en
- Carefully read the question and answer accordingly. How do you refer the fixed block file in COBOL program?
- ORGANIZATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0
- Carefully read the question and answer accordingly. How to update a key field of a record in an INDEXED file?
- The record should be deleted and reinserted with the new key field.
- Carefully read the question and answer accordingly. FILE-CONTROL paragraph in a COBOL program appears in which division?
- Input-Output Section in Environment Division
- Carefully read the question and answer accordingly. What does file status 22 signify ?
- Invalid Key - Duplicate Key found
- Carefully read the question and answer accordingly. •Consider the following FILE SECTION and select the most appropriate comment from the four given below:
- 05 CALENDAR-DATE PIC X(6).
- 10 CALENDAR-DD PIC 99.
- 10 CALENDAR-MM PIC 99.
- 10 CALENDAR-YY PIC 99.
- Incorrect, since PIC clause cannot be specified for a group item
- Carefully read the question and answer accordingly. Select the options which are related to START statement
- Enables the positioning of the pointer as a specific point in an indexed or relative file
- Carefully read the question and answer accordingly. State True or False
- An empty file can be opened in EXTEND mode in a Cobol program and it will not throw any error while running.
- T
- Carefully read the question and answer accordingly. State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
- F
- arefully read the question and answer accordingly. Which condition checks are allowed with the following variable?
- 01 END-OF-FILE PIC X(1).
- 88 EOF VALUE 'N'.
- 88 N-EOF VALUE 'Y'.
- All of the listed above
- Carefully read the question and answer accordingly. Association between file names and corresponding file medium is done in File-Control Paragraph, I-O Section and Environment Division
- Carefully read the question and answer accordingly. For each file you want to read in a COBOL program you have to provide a set of declarations
- and instructions. Select the appropriate order?
- (a) SELECT infile ASSIGN TO
- (b) READ infile
- (c) OPEN INPUT infile
- (d) CLOSE infile
- a, c, b, d
- Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done? OPEN in I-O mode and REWRITE
- Carefully read the question and answer accordingly. Which mode is used to OPEN a file for writing alone?
- OUTPUT EXTEND
- Carefully read the question and answer accordingly. What does file status 22 signify ? Invalid Key - Duplicate Key found
- Carefully read the question and answer accordingly. Indicate which one of the following will not have the INVALID KEY Phrase when used in connection with sequentially accessed relative file in a PROCEDURE DIVISION with out any declarative section.
- REWRITE STATEMENT
- Carefully read the question and answer accordingly. Which of the following files can be opened in all the 4 modes? Sequential
- Carefully read the question and answer accordingly. What is the file status code for "FILE NOT FOUND"? 13
- Carefully read the question and answer accordingly. Select the correct option which related to the below statement
- "Deleting a record in a sequential file is ..."
- Not Possible
- Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
- OPEN in I-O mode and REWRITE
- Carefully read the question and answer accordingly. State True of False
- Multiple keys (Primary & secondary) can be maintained by Indexed files T
- Carefully read the question and answer accordingly. What does File status 92 signify? File is opened for input and an attempt is made to write to it.
- Carefully read the question and answer accordingly. State True of False
- Multiple keys (Primary & secondary) can be maintained by Indexed files.
- T
- arefully read the question and answer accordingly. Select the appropriate option which is not suitable, if the file is opened in the below mode
- WRITE
- Carefully read the question and answer accordingly. How to update a key field of a record in an INDEXED file? The record should be deleted and reinserted with the new key field.
- Carefully read the question and answer accordingly. FD FILE1-DATA
- RECORDING MODE F
- BLOCK CONTAINS 0 RECORDS.
- 01 S1-FILE1-DATA PIC X(400).
- 01 WS-USING-FILE1 REDEFINES S1-FILE1-DATA.
- Is the above file section declaration syntatically correct ?
- F
- Carefully read the question and answer accordingly. Copybook can contain only file layouts. State True or False. F
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- FILE-CONTROL.
- SELECT EMP-FILE ASSIGN TO DISK
- ORGANIZATION IS INDEXED
- ACCESS MODE IS DYNAMIC.
- There is one error in the above code. Choose the error statement from the following options.
- RECORD KEY clause must be specified for an indexed sequential file.
- Carefully read the question and answer accordingly. Consider the following OPEN statement:
- OPEN EXTEND IN-FILE.
- Identify correct statements from the following related to above.
- If the organization of IN-FILE is sequential, records can be added at the end
- Carefully read the question and answer accordingly. How do you refer the fixed block file in COBOL program?
- ORGANIZATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0
- Carefully read the question and answer accordingly. How to update a key field of a record in an INDEXED file?
- The record should be deleted and reinserted with the new key field.
- Carefully read the question and answer accordingly. FILE-CONTROL paragraph in a COBOL program appears in which division? Input-Output Section in Environment Division
- Carefully read the question and answer accordingly. What does file status 22 signify ? Invalid Key - Duplicate Key found
- Carefully read the question and answer accordingly. •Consider the following FILE SECTION and select the most appropriate comment from the four given below:
- 05 CALENDAR-DATE PIC X(6).
- 10 CALENDAR-DD PIC 99.
- 10 CALENDAR-MM PIC 99.
- 10 CALENDAR-YY PIC 99.
- Incorrect, since PIC clause cannot be specified for a group item
- Carefully read the question and answer accordingly. Select the options which are related to START statement
- Enables the positioning of the pointer as a specific point in an indexed or relative file
- Carefully read the question and answer accordingly. Consider the following program.
- PERFORM 10 TIMES
- IF P=Q
- NEXT SENTENCE
- ELSE
- DISPLAY Q
- END-IF
- END-PERFORM.
- If after 5th iteration P becomes equal to Q then what happens.
- It will come out of the perform loop.
- Carefully read the question and answer accordingly. 01 VAR1 PIC 9(10)
- UNSTRING "WELCOME" INTO VAR1
- Execution of above command will result in
- Error as sending field should be an identifier and not a literal
- Carefully read the question and answer accordingly. 1000-PROCESS-PARA.
- EVALUATE TRUE
- WHEN "001"
- DISPLAY "VALUE IS 001"
- WHEN "002"
- DISPLAY "VALUE IS 002"
- PERFORM 9000-PARA THRU 9000-PARA-EXIT
- WHEN "003"
- DISPLAY "VALUE IS 003"
- PERFORM 9000-PARA THRU 9000-PARA-EXIT
- WHEN "004"
- NEXT SENTENCE
- PERFORM 9000-PARA THRU 9000-PARA-EXIT
- WHEN OTHER
- DISPLAY "OTHER ISSUES"
- END-EVALUATE.
- 1000-EXIT.
- EXIT.
- Consider the above statement and select the appropriate option when option is "004"
- Nothing will be displayed and 1000-EXIT will get executed
- Carefully read the question and answer accordingly. Select the correct statement concerning with PERFORM is TRUE?
- The use of a PERFORM statement within the range of another PERFORM Statement is allowed,
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-RESULT PIC 9(2) VALUE 0.
- 05 WS-A PIC 9(2).
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- PERFORM VARYING WS-A FROM 1 BY 1 UNTIL WS-A = 10
- COMPUTE WS-RESULT = WS-RESULT + 1
- END-PERFORM.
- DISPLAY WS-RESULT
- What is the content of WS-RESULT after execution of the above code snippet?
- 9
- Carefully read the question and answer accordingly. Select the allowable level numbers of Elementary data items in COBOL program. 01 TO 49 , 77
- Carefully read the question and answer accordingly. Consider the following Code Snippet.
- IF WS-A>WS-B
- IF WS-A>WS-C
- DISPLAY ‘A’
- NEXT SENTENCE
- END-IF
- DISPLAY ‘C’
- END-IF.
- DISPLAY ‘B’.
- If WS-A=10, WS-B=5, WS-C=7. What is the output of the above?
- AB
- Carefully read the question and answer accordingly. What is level 66 used for? RENAMES
- Carefully read the question and answer accordingly. A LESS 1200 IF B GREATER 25 MOVE 47 TOC
- ELSE MOVE 57 TO C
- IF A GREATER 249 MOVE 67 TO C
- ELSE NEXT SENTENCE ELSE IF B LESS 67
- MOVE 27 TO C
- What will be the value of C, when A is 137 and b is 25
- 57
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- WORKING-STORAGE SECTION.
- 01 WS-COUNT PIC 9 VALUE 0.
- 01 WS-A PIC 9 VALUE 1.
- 01 WS-B PIC 9 VALUE 9.
- PROCEDURE DIVISION.
- MAIN-LOGIC.
- MOVE 1 TO WS-COUNT.
- IF WS-A = 1
- ADD 1 TO WS-COUNT
- IF WS-B = 9
- CONTINUE
- END-IF
- ADD 1 TO WS-COUNT
- END-IF.
- ADD 1 TO WS-COUNT.
- What is the value stored in WS-COUNT after executing the above statements?
- 4
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-A PIC 9(2) VALUE 10.
- 05 WS-B PIC 9(2) VALUE 20.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- SUBTRACT 15 FROM WS-A WS-B.
- DISPLAY "WS-A :" WS-A.
- DISPLAY "WS-B :" WS-B.
- By considering the above code snippet what will be the value of WS-A & WS-B?
- WS-A :05 WS-B :05
- Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
- Repeatable Read
- Carefully read the question and answer accordingly. Which of the following occurs if an application ends abnormally during an active unit of
- work?
- The unit of work is rolled back
- Carefully read the question and answer accordingly. Application A wants to read a subset of rows from table TABLE1 multiple times. Which of the following isolation levels should Application A use to prevent other users from making modifications and additions to table TABLE1 that will affect the subset of rows read?
- Repeatable Read -
- Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False. F
- Carefully read the question and answer accordingly. Which of the following operation enables the user to undo changes made to a database?
- Rollback
- Carefully read the question and answer accordingly. 6 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued? The 6 rows inserted will be not be present in the table
- Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
- ROLLBACK
- Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set? Repeatable Read
- Carefully read the question and answer accordingly. Which of the following DB2 UDB isolation levels will only lock rows during read process-ing if another transaction tries to drop the table the rows are being read from? Uncommitted Read
- Carefully read the question and answer accordingly. Which of the following happens when LOCKSIZE IS ANY is specified and the application program crosses the limit of maximum number of row or page level lock?
- LOCK ESCALATION process is handled by DB2
- Which of the following modes, when used with the LOCK TABLE statement, will cause the DB2 Database Manager to acquire a table-level lock that prevents other concurrent transac-tions from accessing data stored in the table while the owning transaction is active?
- EXCLUSIVE MODE
- Carefully read the question and answer accordingly. Which of the following statements are true with respect to COMMIT statement? The COMMIT Statement is used to store whatever changes have been made on data. If we don't execute a COMMIT Command, it'll executed implicitly when the thread terminates
- Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
- ROLLBACK
- Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
- Repeatable Read
- Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False. F
- Carefully read the question and answer accordingly. Find the maximum, minimum, and average bonus in the table EMP. Execute the statement with uncommitted read isolation, regardless of the value of ISOLATION with which the plan or package containing the statement is bound. Assign 17 as the query number for the SELECT statement
- By considering the above scenario select the appropriate query
- SELECT MAX(BONUS), MIN(BONUS), AVG(BONUS) FROM EMP_TABLE WITH UR QUERYNO 17;
- Carefully read the question and answer accordingly. Which of the following gives the scenario where a deadlock get released?
- The deadlock is released only when one process is timed out
- Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
- Repeatable Read
- Carefully read the question and answer accordingly. Which of the following DB2 UDB isolation levels will only lock rows during read process-ing if another transaction tries to drop the table the rows are being read from?
- Uncommitted Read
- Carefully read the question and answer accordingly. Which of the following implementation helps in continuing processing from the last successfully processed point within a given DB2 program?
- Declaration of cursors
- Carefully read the question and answer accordingly. Which of the following SQLSTATE codes is interpreted as "No data returned"?
- 22xxx
- Carefully read the question and answer accordingly. Select the appropriate answer with respect to INPUT and OUTPUT of Precompiling STEP
- Input to the PRECOMPILE step will be the below SYSIN: COBOL-DB2 application program (member name with the PDS) SYSLIB: DCLGEN PDS name Output of the PRECOMPILE step will be the below DBRMLIB: DBRM member name with the PDS. SYSCIN: Modified source code
- Carefully read the question and answer accordingly. Select the correct flow with respect to compile COBOL-DB2 program
- Precompile BIND Compilation Link edit
- Carefully read the question and answer accordingly. Which of the following is the function of the DB2 pre-compiler?
- Replaces all the SQL statements with host language CALL statements
- Carefully read the question and answer accordingly. Which of the following could lead to negative SQLCODEs during execution in a COBOL-DB2 program?
- Duplicate row getting inserted
- Carefully read the question and answer accordingly. In DB2, which of the following returns SQLCODE, SQLSTATE,SQLERRD,SQLERRP ?
- SQLCA
- Carefully read the question and answer accordingly. Which of the following error trapping method in a DB2 program does not set sql error codes?
- By using WHENEVER clause.
- Carefully read the question and answer accordingly. Which is the DB2 error routine commonly used to trap the errors ?
- DSNTIAR
- Carefully read the question and answer accordingly. What SQLCODE will occur when there is a deadlock or timeout error?
- -911
- Carefully read the question and answer accordingly. Which of the following error trapping method in a DB2 program does not set sql error codes?
- By using WHENEVER clause.
- Carefully read the question and answer accordingly. Which field in SQLCA will return the number of rows affected by an INSERT, UPDATE or DELETE statement SQLERRD(3)
- Carefully read the question and answer accordingly. How should a VARCHAR field be declared in the host variables structure in a COBOL-DB2 program?
- A length field with S9(4) COMP and text field with the maximum length of the string expected in field
- Carefully read the question and answer accordingly. Which of the following are valid SQL commands that can be used when declaring cursors?
- ORDER BY
- Carefully read the question and answer accordingly. In which of the following scenarios the NULL indicator returns a positive value Column is not null
- Carefully read the question and answer accordingly. Which of the following could be the reason if a CLOSE cursor statement is NOT successful?
- The cursor is not in OPEN state
- Carefully read the question and answer accordingly. Select the appropriate options with respect to VARCHAR data type
- Varchar data type is having two components. Length & Text component
- Carefully read the question and answer accordingly. Which of the following are mandatory when declaring a cursor in a DB2 program?
- Cursor Name
- Carefully read the question and answer accordingly. Which of the following will make a column accept a NULL value in DB2?
- Declare the columns WITH DEFAULT NULL explicitly during creation of table
- Declare the columns with no specific qualifying clause meant for NULL
- Carefully read the question and answer accordingly. Which of the following are specifically taken care by the 'for UPDATE OF' clause in cursor handling?
- Ensure Data integrity during updation
- Carefully read the question and answer accordingly. When you issue a COMMIT statement in the program then the Cursor get closed.State True or False.
- T
- Carefully read the question and answer accordingly. A COBOL programmer wants to repeat an instruction 8 times. How can he/she code this?
- Correct Answer:
- PERFORM 8 TIMES instruction END-PERFORM
- Carefully read the question and answer accordingly. Which of the following variable names for data items are syntactically correct?
- orrect Answer:
- TOTAL-NUMBER-OF-LINES-PER-TEST
- Carefully read the question and answer accordingly. Select the OCCURS statement which is syntactically wrong.
- Correct Answer:
- WORKING-STORAGE SECTION. 05 WS-TABLE1 OCCURS 100 INDEXED BY INX-B PIC X(5).
- Carefully read the question and answer accordingly. Which of the following word can NOT be used to perform calculations in a COBOL program.
- Correct Answer:
- ASSIGN
- Carefully read the question and answer accordingly. DELIMITED BY SIZE in STRING fucntion, makes the transfer of characters from source field to receiving field to stop once a blank is encountered
- orrect Answer:
- F
- Carefully read the question and answer accordingly. COBOL verb that is not directly related with an index name
- Correct Answer:
- SORT
- Carefully read the question and answer accordingly. Size of -9(5).999 is
- Correct Answer:
- 10
- Carefully read the question and answer accordingly. What is the maximum size of numeric fields in COBOL ?
- Correct Answer:
- 18
- Carefully read the question and answer accordingly. How many bytes does PIC S9(10)V99 COMP-3 occupy?
- Correct Answer:
- 6
- Carefully read the question and answer accordingly. WHEN OTHER is mandatory in EVALUATE structure.
- State True or False.
- Correct Answer:
- FALSE
- Carefully read the question and answer accordingly. What is the physical storage length of each of the
- following DB2 data types: DATE, TIME, TIMESTAMP resp.?
- Correct Answer:
- 4 bytes,3 bytes,10bytes
- Carefully read the question and answer accordingly. Complete the following sentence correctly:
- A database can not be dropped …
- Correct Answer:
- ... while a DB2 utility has control of any part of the database.
- number of tables joined in FROM clause for better performance.
- State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. List down all the valid types of relationships (Cardinality)
- Correct Answer:
- One-to-One One-to-Many Many-to-One Many-to-Many
- Carefully read the question and answer accordingly. Which of the following deletion rules on CREATE TABLE will allow parent table rows to be deleted if a dependent row exists?
- Correct Answer:
- ON DELETE CASCADE
- Carefully read the question and answer accordingly. When declaring a foreign key on a table, referencing an existing primary key with complete definition,
- what might differ between foreign key and primary key?
- Correct Answer:
- The nullability of one of the included columns.
- Carefully read the question and answer accordingly. Which of the following tools can be used to automate table reorganization operations?
- Correct Answer:
- Task Center
- Carefully read the question and answer accordingly. A view is created with columns from three tables.
- Which of the following is True with respect to updating the view?
- orrect Answer:
- Cannot update any column referred in the view
- Carefully read the question and answer accordingly. Which of the following happens, if an embedded SQL statement is coded from the 45th column?
- orrect Answer:
- There is no error
- Carefully read the question and answer accordingly. How many indexes can be created for a single table ?
- Correct Answer:
- 250
- Carefully read the question and answer accordingly. How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy
- Correct Answer:
- 8 bytes
- Carefully read the question and answer accordingly. Mismatch in LRECL or BLKSIZE or RECFM between COBOL program and the JCL gives you a file status of
- Correct Answer:
- 39
- Carefully read the question and answer accordingly. Which one of the following is incorrect?
- Correct Answer:
- SUBTRACT A FROM D, B FROM E, C FROM F
- Carefully read the question and answer accordingly. How many bytes does PIC S9(10)V99 COMP-3 occupy?
- Correct Answer:
- 6
- Carefully read the question and answer accordingly. What should be used to detect field overflow on the receiving field?
- Correct Answer:
- SIZE ERROR clause
- Carefully read the question and answer accordingly. How is sign stored in a COMP field?
- Correct Answer:
- In the most significant bit
- Carefully read the question and answer accordingly. Which of the following can be used as a numeric edit character in COBOL?
- Correct Answer:
- All of the listed options
- Carefully read the question and answer accordingly. What is the chief disadvantage of using ACCEPT statement?
- Correct Answer:
- The end-of-file cannot be recognized
- Carefully read the question and answer accordingly. What is the chief disadvantage of using ACCEPT statement?
- Correct Answer:
- The end-of-file cannot be recognized
- Carefully read the question and answer accordingly. State whether True or False. Can REDEFINES clause be used for '05' level items in FD SECTION?
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following is the function of the DB2 pre-compiler?
- Selected Option:
- Replaces all the SQL statements with host language CALL statements - 1.0
- Carefully read the question and answer accordingly. What is the use of DSNTIAR rou
- Correct Answer:
- It is an “Error Reporting Routine” supplied by IBM for DB2. This routine can be called from a COBOL-DB2 application program to display a formatted error message.
- Carefully read the question and answer accordingly. An embedded SQL statement returns a sqlcode of - 811, with a message of:
- THE RESULT OF AN EMBEDDED SELECT STATEMENT IS A TABLE OF MORE THAN ONE ROW, OR
- THE RESULT OF THE SUBQUERY OF A BASIC PREDICATE IS MORE THAN ONE VALUE
- What might be the problem and solution, without changing the logical result of the SQL q
- The SQL statement was not a singleton select. A cursor will be needed. - 1.0
- Carefully read the question and answer accordingly. State TRUE or FALSE
- When a program issues an INSERT, UPDATE, or DELETE statement, DB2 does not immediately write
- the table modification to disk.It logs the changes in a dataset and keeps track of the changes in virtual
- storage buffers.
- Selected Option:
- T - 1.0
- Carefully read the question and answer accordingly. After changes pertaining only to COBOL program having DB2 as backend, is it necessary to re-bind the program ?
- Selected Option:
- T - 1.0
- Carefully read the question and answer accordingly. The precompilation of DB2 program throws some error.
- Which of the following does the above indicate?
- Selected Option:
- Incorrect use of SQL statements - 1.0
- Carefully read the question and answer accordingly. Which of the following are the outcomes of the BIND operation?
- Selected Option:
- PLAN - 1.0
- arefully read the question and answer accordingly. What is the expansion of DCLGEN?
- Selected Option:
- Declarations Generator - 1.0
- Carefully read the question and answer accordingly. Which of the following implementation helps in continuing processing from the last successfully processed point within a given DB2 program?
- Correct Answer:
- Declaration of cursors
- Carefully read the question and answer accordingly. Which of the following happens when LOCKSIZE IS ANY is specified and the application program crosses the limit of maximum number of row or page level lo
- Correct Answer:
- LOCK ESCALATION process is handled by DB2
- Carefully read the question and answer accordingly. Which of the following statements are true related to isolation levels?
- Statement 1 : CS - Releases the lock on a page after use
- Statement 2: RR - Retains all locks acquired till end of transaction
- Selected Option:
- Both the statements are true - 1.0
- Carefully read the question and answer accordingly. The data changes can be made permanent by using COMMIT. It also permits data to be accessed by other applications who can reference the committed data
- Selected Option:
- T - 1.0
- arefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
- Selected Option:
- ROLLBACK - 1.0
- Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which of the following statements are true with respect to COMMIT statemen
- Correct Answer:
- The COMMIT Statement is used to store whatever changes have been made on data. If we don't execute a COMMIT Command, it'll executed implicitly when the thread terminates
- Carefully read the question and answer accordingly. consider the following
- FD FILE-1
- 01 REC-1 PIC X(80)
- ......
- WORKING-STORAGE SECTION
- 01 W-REC PIC X(90)
- ........
- PROCEDURE DIVISION
- FIRST-PARA
- .......
- READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
- which of the following is true with respect to the above?
- Correct Answer:
- REC-1 and W-REC contain the same data
- Carefully read the question and answer accordingly. What dataset name you will give to browse a VSAM KSDS dataset?
- Correct Answer:
- Cluster name
- Carefully read the question and answer accordingly. What is the TSO option to view the VSAM data set in file manager?
- Correct Answer:
- TS;F;F
- DB2
- Carefully read the question and answer accordingly. What is the sql error code will throw when a table is undefined with a column name ?
- Correct Answer:
- -204
- Carefully read the question and answer accordingly. Select the correct flow with respect to compile COBOL-DB2 program
- Correct Answer:
- Precompile BIND Compilation Link edit
- Carefully read the question and answer accordingly. A plan needs to refer 4 packages. Instead only 3 packages are bound.
- Which of the following happens during program ex
- Correct Answer:
- The program executes correctly for the 3 packages that are mentioned in the plan, but raises exception error(that needs to be trapped) when the code in the missed package is referred.
- Carefully read the question and answer accordingly. Which of the following are the outcomes of the BIND operation?
- Correct Answer:
- PLAN
- Carefully read the question and answer accordingly. A declared temporary table is used for which of the following purposes?
- Correct Answer:
- Storing intermediate results
- Carefully read the question and answer accordingly. If the SQLCA is included in the program, which of the following host-variables is NOT known and as such unavailable for the program?
- Correct Answer:
- SQLNUM
- Carefully read the question and answer accordingly. Which of the following could lead to negative SQLCODEs during execution in a COBOL-DB2 program?
- Correct Answer:
- Duplicate row getting inserted
- Carefully read the question and answer accordingly. An embedded SQL statement returns a sqlcode of - 811, with a message of:
- THE RESULT OF AN EMBEDDED SELECT STATEMENT IS A TABLE OF MORE THAN ONE ROW, OR
- THE RESULT OF THE SUBQUERY OF A BASIC PREDICATE IS MORE THAN ONE VALUE
- What might be the problem and solution, without changing the logical result of the SQL query?
- Correct Answer:
- The SQL statement was not a singleton select. A cursor will be needed.
- Carefully read the question and answer accordingly. What is the equivalent COBOL picture clause for DB2 data type TIMESTAMP ?
- Selected Option:
- PICX(26) - 1.0
- Carefully read the question and answer accordingly. What is SQLCA’s maximum length
- Selected Option:
- 136 - 1.0
- Carefully read the question and answer accordingly. •According to the given declarations in Data Division. How many elementary items are described below?
- 05 CALENDAR-DATE.
- 08 CALENDAR-DAY PIC 99.
- 08 CALENDAR-MON PIC 99.
- 08 CALENDAR-YEAR PIC 99.
- 05 FILLER PIC X(5).
- 05 VAR1 PIC XX.
- 05 VAR2 PIC X.
- 05 END-DATE.
- 10 FILLER PIC X(4).
- 10 END-YEAR PIC 99.
- Correct Answer:
- 6
- Carefully read the question and answer accordingly. •According to the given declarations in Data Division. How many elementary items are described below?
- 05 CALENDAR-DATE.
- 08 CALENDAR-DAY PIC 99.
- 08 CALENDAR-MON PIC 99.
- 08 CALENDAR-YEAR PIC 99.
- 05 FILLER PIC X(5).
- 05 VAR1 PIC XX.
- 05 VAR2 PIC X.
- 05 END-DATE.
- 10 FILLER PIC X(4).
- 10 END-YEAR PIC 99.
- Correct Answer:
- 6
- Carefully read the question and answer accordingly. The following portion of procedure division
- MOVE 0 TO A, I.
- PARA-1.
- ADD 3 TO A.
- ADD 2 TO I.
- IF I < a=" ‘,">B MOVE A TO C
- ELSE MOVE B TO C.
- ADD C TO D.
- Indicate which one of the following does not support the above statements
- Correct Answer:
- The larger of the values, A and B will be added to D.
- Carefully read the question and answer accordingly. Data-names V1, V2, V3 and V4 have the following
- definitions in the WORKING-STORAGE section:
- Carefully read the question and answer accordingly. Consider the following declaration in the WORKING-STORAGE section.
- 01 WEEK-DAY-NAMES PIC X(45)
- VALUE 'MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY'.
- 01 WEEK-DAYS REDEFINES WEEK-DAY-NAMES.
- 02 WEEK_DAY PIC X(9) OCCURS 5 TIMES.
- What value will be present in WEEK-DAY(4) ?
- Correct Answer:
- 'URSDAY FR’
- 01 V1 PIC 9-.
- 01 V2 PIC 9+.
- 01 V3 PIC 9CR.
- 01 V4 PIC 9DB The statement MOVE -8 to V1, V2, V3, V4 will produce the following bytes in V1, V2, V3 and V4 respectively
- Correct Answer:
- 8 8 8CR 8DB
- Carefully read the question and answer accordingly. Select the functions which is used to convert alphanumeric data items that contain free-format character-representation numbers to numeric form, and process them numerically
- Correct Answer:
- NUMVAL-C
- Carefully read the question and answer accordingly. consider the following program statements
- MOVE 0 TO SW.NO.OF.REC
- PERFORM PRI-OUT UNTIL SW=1
- DISPALY NO.OF.REC
- STOP RUN
- PRE-OUT
- READ IN-FILE AT END
- MOVE 1 TO SW
- WRITE OUO-REC FROM IN-REC
- ADD 1 TO NO.OF REC
- if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over?assume that N0.OF.REC has PIC 9(4)
- Selected Option:
- none of the above since there is a syntex error - 1.0
- Carefully read the question and answer accordingly. Consider the following code:
- 01 WS-STR1 PIC X(12) VALUSE 'ROSSISS ALI'.
- 01 WS-STR2 PIC X(4) SPACES.
- 01 WS-STR3 PIC X(4) SPACES.
- 01 WS-STR4 PIC X(4) SPACES.
- What will be the content of WS-STR2, WS-STR3, WS-STR4 after the execution of the below statement?
- UNSTRING WS_STR1 DELIMITED BY ALL 'S' INTO WS_STR2, WS-STR3, WS-STR4.
- Correct Answer:
- RO, I, ALI respectively
- Carefully read the question and answer accordingly. SORT REPORT-FILE
- ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
- USING INPUT-FILE GIVING OUTPUT-FILE.
- Which one of the following is false.
- Selected Option:
- The data-names CLASS-NUMBER and STUDENT-NAME must appear in the record description of REPORT-FILE. - 0.0
- Correct Answer:
- The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
- Carefully read the question and answer accordingly. 05 A PIC 999 VALUE 256.
- 05 B PIC 99 VALUE 15.
- 05 C PIC 99.
- COMPUTE C = FUNCTION REM(A B) is valid
- Correct Answer:
- F
- Carefully read the question and answer accordingly. In the example below 05 WS-VAR1 PIC X(5),05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5),PROCEDURE DIVISION MOVE 05 NO-OF-BRANDS PIC 99
- 05 BRAND-.Now what is the value of WS-VAR1 and WS-VAR2 ?
- Correct Answer:
- WS-VAR1 = ABCDE WS-VAR2 = Low values or Spaces
- Carefully read the question and answer accordingly. Consider the following piece of code
- 01 GROUP-ITEM
- 05 AMT-1 PIC 99V9 USAGE COMP VALUE 50
- 05 AMT-2 PIC 9(4)V99 USAGE COMP
- PROCEDURE DIVISION
- MOVE ZERO TO GROUP-ITEM.
- ADD 50 TO AMT-1.
- what will be the content of AMT-1?
- Correct Answer:
- 50
- Carefully read the question and answer accordingly. 01 Item-1 Pic x(30) Value "Hello World!".
- 01 Item-2 Pic x(30).
- . . .
- Display Item-1
- Display Function Upper-case(Item-1)
- Display Function Lower-case(Item-1)
- Move Function Upper-case(Item-1) to Item-2
- Display Item-2
- Select the appropriate outputs after execution of above code snippet
- Correct Answer:
- Hello World! HELLO WORLD! hello world! HELLO WORLD!
- Carefully read the question and answer accordingly. In DATA DIVISION the entries are
- 01 BILL-AMT.
- 02 A PIC 99.
- 02 FILLER PIC X(7).
- Indicate which one of the following statement in the Procedure division is correct
- Selected Option:
- MOVE ZEROS TO A. - 1.0
- Carefully read the question and answer accordingly. What should be usage clause if a dat item declared as PIC s9(4) requires storage of 3 bytes ?
- Correct Answer:
- COMP-3
- Quiz Results
- Problem Grade Answered Correctly
- 1 Carefully read the question and answer accordingly. Consider the following piece of code 01 GROU...
- Carefully read the question and answer accordingly. Consider the following piece of code
- 01 GROUP-ITEM
- 05 AMT-1 PIC 99V9 USAGE COMP VALUE 50
- 05 AMT-2 PIC 9(4)V99 USAGE COMP
- PROCEDURE DIVISION
- MOVE ZERO TO GROUP-ITEM.
- ADD 50 TO AMT-1.
- what will be the content of AMT-1?
- Selected Option:
- 50 - 1.0
- Correct Answer:
- 50
- 1.0
- 2 Carefully read the question and answer accordingly. Consider the following declaration in the WOR...
- Carefully read the question and answer accordingly. Consider the following declaration in the WORKING-STORAGE section.
- 01 WEEK-DAY-NAMES PIC X(45)
- VALUE 'MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY'.
- 01 WEEK-DAYS REDEFINES WEEK-DAY-NAMES.
- 02 WEEK_DAY PIC X(9) OCCURS 5 TIMES.
- What value will be present in WEEK-DAY(4) ?
- Correct Answer:
- 'URSDAY FR’
- 0.0
- 3 Carefully read the question and answer accordingly. The following portion of procedure division ...
- Carefully read the question and answer accordingly. The following portion of procedure division
- MOVE 0 TO A, I.
- PARA-1.
- ADD 3 TO A.
- ADD 2 TO I.
- IF I < a=" ‘,">B MOVE A TO C
- ELSE MOVE B TO C.
- ADD C TO D.
- Indicate which one of the following does not support the above statements
- Correct Answer:
- The larger of the values, A and B will be added to D.
- 1.0
- 4 Carefully read the question and answer accordingly. Take a look at the following COBOL program. A...
- ×
- Quiz Attempt
- Carefully read the question and answer accordingly. Take a look at the following COBOL program. Assuming A, B, C, ... are COBOL instructions,
- in which order will they be executed?
- MAIN-PAR.
- PERFORM INIT-PAR
- Z
- PERFORM TERM-PAR
- Z
- STOP RUN
- .
- INIT-PAR.
- A
- B
- PERFORM READ-X
- .
- LOOP-PAR.
- E
- F
- .
- TERM-PAR.
- G
- H
- .
- READ-X.
- X.
- Selected Option:
- A B X Z G H Z - 1.0
- Correct Answer:
- A B X Z G H Z
- Carefully read the question and answer accordingly. In code snippet, how many times the paragraph CALC-PARA will be executed?
- PERFORM CALC-PARA THRU CALC-PARA-EXIT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 13.
- Selected Option:
- 13 - 0.0
- Correct Answer:
- 12
- Carefully read the question and answer accordingly. MOVE FUNCTION CURRENT-DATE TO WS-CURRENT-DATE-FIELDS
- By considering the above move statement, select the appropriate option to define the WS-CURRENT-DATE-FIELDS in working storage section.
- Correct Answer:
- 01 WS-CURRENT-DATE-FIELDS. 05 WS-CURRENT-DATE. 10 WS-CURRENT-YEAR PIC 9(4). 10 WS-CURRENT-MONTH PIC 9(2). 10 WS-CURRENT-DAY PIC 9(2). 05 WS-CURRENT-TIME. 10 WS-CURRENT-HOUR PIC 9(2). 10 WS-CURRENT-MINUTE PIC 9(2). 10 WS-CURRENT-SECOND PIC 9(2). 10 WS-CURRENT-MS PIC 9(2). 05 WS-DIFF-FROM-GMT PIC S9(4).
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-A PIC 9(2) VALUE 5.
- 05 WS-B PIC 9(2) VALUE 39.
- 05 WS-C PIC 9(2) VALUE 18.
- 05 WS-D PIC 9(2) VALUE 20.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- DIVIDE WS-A INTO WS-B GIVING WS-C REMAINDER WS-D.
- DISPLAY "WS-A :" WS-A
- DISPLAY "WS-B :" WS-B
- DISPLAY "WS-C :" WS-C
- DISPLAY "WS-D :" WS-D
- After the execution of above snippet what will be the output?
- Selected Option:
- WS-A :05 WS-B :39 WS-C :07 WS-D :04 - 1.0
- Correct Answer:
- WS-A :05 WS-B :39 WS-C :07 WS-D :04
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-FIRST PIC X(10) VALUE "MAINFRAMES".
- 01 WS-SECOND.
- 05 WS-FF PIC X(06) VALUE "HAPPY ".
- 05 WS-SS PIC X(10).
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE FUNCTION REVERSE (WS-FIRST) TO WS-SS
- DISPLAY "WS-FIRST :" WS-FIRST
- DISPLAY "WS-SECOND :" WS-SECOND
- After execution of the above code snippet what will be the sysout?
- Selected Option:
- WS-FIRST:MAINFRAMES WS-SECOND:HAPPY SEMARFNIAM - 0.0
- Correct Answer:
- WS-FIRST :MAINFRAMES WS-SECOND :HAPPY SEMARFNIAM
- Carefully read the question and answer accordingly. study the data discriptions and answer the questions given below
- i)01 ORDER RECORD
- 05 OUT-HEADER PIC X(50)
- 05 ITEM-COUNT PIC 99
- 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING
- ON ITEM-COUNT
- ii)01 NAME-AND-ADDRESS
- 05 N-AND-A-LINE OCCURES 5
- 05 LINE-LENGTH PIC P9
- 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON
- LINE-LENGTH
- iii)01 SALES-LIST
- 05 SALESMAN-COUNT PIC 99
- 05 SALES PIC 9(6) OCCURS 1 TO 100
- DEPENDING ON
- SALESMAN-COUNT
- iv)01 ORDER-RECORD
- 05 NO-OF-BRANDS PIC 99
- 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
- NO-OF-BRANDS
- which of the following is true?
- a.i) and iii) are valid
- b.i) and iv) are valid
- c.i) and iii) are not valid
- d.all are valid
- Correct Answer:
- i) and iii) are not valid
- Close 1.0
- 10
- Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
- 01 WS1 PIC ZZ999.
- 01 WS2 PIC $ZZ999.
- 01 WS3 PIC 9999CR.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE 01234 TO WS1.
- MOVE 123 TO WS2.
- MOVE -1234 TO WS3.
- DISPLAY WS1.
- DISPLAY WS2.
- DISPLAY WS3.
- STOP RUN.
- consider the above code snippet and select the appropriate option.
- Selected Option:
- The SYSOUT will be as below b1234 $123 1234CR - 0.0
- Correct Answer:
- The SYSOUT will be as below b1234 $bb123 1234CR
- 0.0
- Carefully read the question and answer accordingly. ................ provides option for entering SQL queries as execution time, rather than at the development stage.
- Correct Answer:
- Dynamic SQL
- Carefully read the question and answer accordingly. Statement 1: Default value of CHAR will be blank
- Statement 2: Default value of SMALLINT will be blank
- Statement 3: Default value of INTEGER will be zero
- By considering the above statements select the appropriate option
- Correct Answer:
- Statement 1 & 3 are TRUE Statement 2 is FALSE
- Carefully read the question and answer accordingly. MAX can be used on a CHAR column.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following statement is TRUE with regard to UNION ALL?
- Correct Answer:
- UNION ALL is used to combine the result of different select statements by retaining duplicates
- Carefully read the question and answer accordingly. Primary key can have NULL values.
- State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which authority or privilege is granted by the DB2 Database Manager configuration file?
- Correct Answer:
- SYSMAINT
- Carefully read the question and answer accordingly. 1) Database is a group of logically related Tablespaces and Indexspaces.
- 2) Table space is a logical address space on secondary storage to hold one or more tables.
- 3) Table that is physically stored within a table space contains one or more stored records.
- 4) Table contains one stored record per row in the base table.
- All of the above statements are Correct.
- State True or False.
- Correct Answer:
- TRUE
- Which of the following are valid statements related to JCL procedures?
- A cataloged procedure is stored in a partitioned data set and may be invoked by any job on the system.
- // SET FILEOUT='MYID.TEST.OUTPUT'
- Consider the above code snippet. What is the correct statement to Nullify the FILEOUT symbolic parameter?
- // SET FILEOUT=
- Consider the following JCL statements with use of symbolic parameters.
- //RUN PROC TAPE=2400,NAME=SYS1
- ......... (more lines of JCL not affecting the lines below)
- //A DD UNIT=&TAPE-2,DSN=&NAME..P
- Which of the following is the correct manner in which the DD statement parameters will get substituted?
- //A DD UNIT=2400-2,DSN=SYS1.P
- In stream data need to start with
- DD *
- Identify the correct JCL which will create a copy/backup dataset named DATASET4 using DATASET5
- //COPY JOB ... //JOBSTEP EXEC PGM=IEBCOPY //SYSPRINT DD SYSOUT=A //SYSUT1 DD DSNAME=DATASET5,UNIT=disk,VOL=SER=111113, // DISP=SHR //SYSUT2 DD DSNAME=DATASET4,UNIT=disk,VOL=SER=111112, // DISP=(NEW,KEEP),SPACE=(TRK,(5,1,2))
- What does * in sysout=* mean?
- Same as MSGCLASS
- How many datasets can be merged at a time?
- 16
- What is the command to display the jobs with job name beginning with ‘JBPCH002’ in SDSF
- PRE JBPCH002
- What parameter directs the output of the job log dataset ?
- MSGCLASS
- Consider the following JCL code that shows use of Procedures:
- //TOPJOB JOB (P,U202,SH1),'BOX 77',CALSS=A
- //*
- //PROC1 PROC SYSTEM='TEST',DEPT='UNK',TYPE='UNK'
- //STEP1 EXEC PGM=PROGRAM1
- //FILEIN DD DSNAME=&SYTEM..&DEPT..&TYPE,DISP=SHR
- //FILEOUT DD DSN=&&TEMPDATA,DISP=NEW,
- ****
- //PEND
- //*
- //STEP1 EXEC PROC1,SYSTEM=PROD,DEPT=ACCT,TYPE=MASTER
- Which of the following types of Procedure is used in the above?
- Instream Procedures
- Carefully read the question and answer accordingly. What is the command to display the jobs with job name beginning with ‘JBPCH002’ in SDSF
- orrect Answer:
- PRE JBPCH002
- Carefully read the question and answer accordingly. We can give In stream data in a PROC
- orrect Answer:
- F
- Carefully read the question and answer accordingly. Which of the following is TRUE with respect to parameters in JCL?
- Correct Answer:
- Key word parameters can be coded in any order after any positional parameters
- Carefully read the question and answer accordingly. Is it possible to define VOL=SER= parameter for Tape datasets?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Consider there are five datasets concatenated in a Job step.
- I have to override only the 3rd dataset out of five.
- Choose the correct option from the listed.
- Correct Answer:
- //STEP03.DD1 DD // DD // DD DSN=TCHN670.L1PMF01.D150914.CODE
- Carefully read the question and answer accordingly. State whether true or false:
- INCLUDE statement and OMIT statement cannot be specified together in DFSORT
- Correct Answer:
- T
- Carefully read the question and answer accordingly. JCL procedures can be retrieved from the following.
- 1. From Private library
- 2. From the input stream
- 3. From the system library
- What is the order in which system searches for a JCL procedure?
- orrect Answer:
- In the order of 2,1, and 3
- Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library?
- Correct Answer:
- By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
- Carefully read the question and answer accordingly. State True or False
- IF-THEN-ELSE construct can be coded in JCL.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. In JCL, Instream data has been passed using the following command ?
- Correct Answer:
- //SYSIN DD * input data /*
- Carefully read the question and answer accordingly. The return code can be a number between
- Correct Answer:
- 0 to 4095
- Carefully read the question and answer accordingly. Consider the following JCL code that shows use of Procedures:
- //TOPJOB JOB (P,U202,SH1),'BOX 77',CALSS=A
- //*
- //PROC1 PROC SYSTEM='TEST',DEPT='UNK',TYPE='UNK'
- //STEP1 EXEC PGM=PROGRAM1
- //FILEIN DD DSNAME=&SYTEM..&DEPT..&TYPE,DISP=SHR
- //FILEOUT DD DSN=&&TEMPDATA,DISP=NEW,
- ****
- //PEND
- //*
- //STEP1 EXEC PROC1,SYSTEM=PROD,DEPT=ACCT,TYPE=MASTER
- Which of the following types of Procedure is used in the above?
- Correct Answer:
- Instream Procedures
- Carefully read the question and answer accordingly. Consider the following JCL:
- //J51507 JOBA ACCT15,'J51507, Dept 353'
- //DD1 DD DSNAME=TEMP.DATA,DISP=(NEW,KEEP,DELETE),
- // UNIT=3380,SPACE=(CYL,(10,5))
- //DD2 DD DSNAME=NEW.DATA,DISP=(NEW,CATLG,DELETE),
- // UNIT=3350,SPACE=(TRK,(20,5))
- //DD3 DD DSNAME=TEMP.DATA,DISP=OLD
- //DD4 DD DSN=TEST.DATA.SAMPLE,DISP=(CATLG,DELETE),
- // DCB=(DSORG=PS,RECFM=FB,LRECL=80),
- // SPACE=(80,(1,5 ),RLSE)
- Which of the above line is not coded properly?
- Correct Answer:
- //J51507 JOBA ACCT15,'J51507, Dept 353'
- Carefully read the question and answer accordingly. Is it possible to define VOL=SER= parameter for Tape datasets?
- Carefully read the question and answer accordingly. You run a job executing a cataloged procedure, and you need to determine whether or not a statement was overridden.
- Which of the following symbols appear in columns 1 through 3 of the output listing if such a statement is overridden?
- Correct Answer:
- X/
- Carefully read the question and answer accordingly. Consider Space= (27998,(20000,1000),RLSE, CONTIG). It requests that primary space be allocated on contiguous cylinders and tracks.State True or False
- correct Answer:
- TRUE
- Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library?
- Correct Answer:
- By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
- Carefully read the question and answer accordingly. Consider the following Job card:
- //TSOCABX JOB (00010,1020983),'TSOCAB'
- Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
- Correct Answer:
- ,CLASS=D
- Carefully read the question and answer accordingly. Choose the list of statements allowed in a Catalogued procedure.
- Correct Answer:
- DD DUMMY
- Carefully read the question and answer accordingly. Which code snippet is correct to have the below requirement?
- The output file should be included only for the records, which amount is greater than 10000 & sorted in ascending order based on the first 10 characters
- Correct Answer:
- //STEP01 EXEC PGM=SORT //SORTIN DD DSN=MYID.TEST.INPUT,DISP=SHR //SORTOUT DD DSN=MYID.TEST.OUTPUT,DISP=(NEW,CATLG), // SPACE=(TRK,(1,1)), // DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,10,CH,A) INCLUDE COND=(40,8,ZD,GT,10000) /*
- Carefully read the question and answer accordingly. Consider the below JCL and choose the DISP status ?
- //STEP01 EXEC PGM=IEFBR14
- //CREATEPS DD DSN=XX.YY, DISP=(,CATLG), SPACE=(TRK,(1,1,1),RLSE),
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
- Correct Answer:
- NEW
- Carefully read the question and answer accordingly. How can an in-stream dataset be terminated?
- Correct Answer:
- /*
- Carefully read the question and answer accordingly. Sate True or False.
- In a Catalogued procedure NULL (//) statement is allowed.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. // SET FILEOUT='MYID.TEST.OUTPUT'
- Consider the above code snippet. What is the correct statement to Nullify the FILEOUT symbolic parameter?
- Correct Answer:
- // SET FILEOUT=
- Carefully read the question and answer accordingly. What is the purpose of the ‘DD KEYLEN’ parameter in a JCL?
- Correct Answer:
- Specifies the length of the keys in the dataset
- Carefully read the question and answer accordingly. What are all the national characters be allowed in JCL name field?
- Correct Answer:
- # @ and $
- Carefully read the question and answer accordingly. If the job has been coded with both a JOBLIB and STEPLIB, what will happen when execute the job?
- Correct Answer:
- The STEPLIB library is searched before the JOBLIB library. The JOBLIB library is ignored for the job step.
- Carefully read the question and answer accordingly. //TEST JOB(110), ‘testing’
- //STEP1 EXEC PGM=PGM1
- //DATA1 DD DSN=<File name>,
- // UNIT = SYSDA
- From the above code snippet UNIT
- Correct Answer:
- SYSDA implies that the data is stored in any system direct access device like DISK
- Carefully read the question and answer accordingly. The parameter that can be used to control the number of lines to be printed to output log
- Correct Answer:
- LINES
- Carefully read the question and answer accordingly. Which of the following is true with respect to JCL symbols?
- Correct Answer:
- All of the listed options
- Carefully read the question and answer accordingly. What is the prefix character for symbolic parameter
- Correct Answer:
- &
- Carefully read the question and answer accordingly. The invalid 'Abnormal Disposition'(Job ends with Abnormal Return code) value for DISP parameter
- orrect Answer:
- NEW
- Carefully read the question and answer accordingly. Consider, the value for Symbolic parameter is given in both JCL and PROC. While execution, the value given in the job is considered
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following equivalents are correct?
- Correct Answer:
- DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
- Carefully read the question and answer accordingly. Which of the following parameters is used to send a status message to a TSO user on completion of a job?
- Correct Answer:
- NOTIFY
- Carefully read the question and answer accordingly. What should be coded in the job statement if the program needs 100K of central storage?
- Correct Answer:
- //Jobid JOB Jobname,,REGION=100K,,
- Carefully read the question and answer accordingly. Maximum number of steps that could be executed in JCL
- Correct Answer:
- 255
- Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
- Correct Answer:
- MSGLEVEL = (1,1)
- Carefully read the question and answer accordingly. Consider the following:
- // SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1
- Which of the following structures containing symbolic parameters will result in:
- TBISUSR.JCLCRS.DATA1?
- Correct Answer:
- &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
- Carefully read the question and answer accordingly. Which of the following is not a function of SDSF ?
- Correct Answer:
- Scheduling a Job
- Carefully read the question and answer accordingly. which of the following defines a NULL statement in a JCL?
- Correct Answer:
- By keeping double slash alone //
- Carefully read the question and answer accordingly. What is the function of DD DISP parameter in a JCL?
- Correct Answer:
- All of the listed options
- Carefully read the question and answer accordingly. The invalid 'Normal Disposition'(Job ends with Normal Return code) value for DISP parameter
- Correct Answer:
- NEW
- Carefully read the question and answer accordingly. In stream data need to start with
- Correct Answer:
- DD *
- Carefully read the question and answer accordingly. Which of the following operators would be given first priority for an relational expression in a JCL?
- Correct Answer:
- NOT
- Carefully read the question and answer accordingly. Consider the following:
- // SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1
- Which of the following structures containing symbolic parameters will result in:
- TBISUSR.JCLCRS.DATA1?
- Correct Answer:
- &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
- Carefully read the question and answer accordingly. Consider the below scenario.
- A Job is calling 3 PROC's and each PROC is having 100 Steps in it. Whether the JOB will get executed ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which of the following are valid positional parameters in a JCL statement?
- Correct Answer:
- PGM=program-name
- Carefully read the question and answer accordingly. Which of the following creates a cataloged, sequential dataset with a 132-byte record length that will uncatalog if the job step fails?
- Correct Answer:
- //OUTFILE DD DSN=OUTFILE.PROD.DATA,DISP=(,CATLG,UNCATLG),UNIT=SYSDA, // DCB=(RECFM=FB,LRECL=132,DSORG=PS,BLKSIZE=1320), // SPACE=(1320,(100,50))
- db2
- 1.Carefully read the question and answer accordingly. Select the appropriate option with respect to Read Stability
- Selected Option:
- RS holds page and row locks until a COMMIT point is reached. But other programs can INSERT new data - 1.0
- 2.Carefully read the question and answer accordingly. Consider the following scenario:
- A Banking application program PRG1 processes monthly transaction charges by adding the amount to account A and subtracting the same amount from individual accounts of customers.At the same time, another application PRG2 queries the total balance amount of all accounts including account A and customer accounts.This application is defined with isolation level UR(Uncommitted Read).
- Which of the following can happen with respect to the query of balances by program PRG2?
- Correct Answer:
- If PRG1 subtracts the transaction amount from a customer account before adding to Account A, then the PRG2 query can miss the amount entirely
- 3.Carefully read the question and answer accordingly. Application A wants to read a subset of rows from table TABLE1 multiple times. Which of the following isolation levels should Application A use to prevent other users from making modifications and additions to table TABLE1 that will affect the subset of rows read?
- Correct Answer:
- Repeatable Read
- 4.
- Carefully read the question and answer accordingly. Which of the following happens when a ROLLBACK is issued?
- Correct Answer:
- All open cursors are closed
- 5.Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
- Selected Option:
- ROLLBACK - 1.0
- 6.Carefully read the question and answer accordingly. 6 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued?
- Correct Answer:
- The 6 rows inserted will be not be present in the table.
- 7.Carefully read the question and answer accordingly. Which of the following occurs if an application ends abnormally during an active unit of
- work?
- Correct Answer:
- The unit of work is rolled back
- 8.Carefully read the question and answer accordingly. Which of the following gives the scenario where a deadlock get released?
- Correct Answer:
- The deadlock is released only when one process is timed out
- 10.
- Carefully read the question and answer accordingly. The data changes can be made permanent by using COMMIT. It also permits data to be accessed by other applications who can reference the committed data
- Correct Answer:
- T
- Carefully read the question and answer accordingly. State whether TRUE or FALSE
- While executing the application program for describing success or failure of the execution, SQLCA can be included. But the layout of SQLCA cannot be coded in working storage section. Only INCLUDE SQLCA will be accepted by the program
- Correct Answer:
- F
- Carefully read the question and answer accordingly. When you will chose to run RUNSTATS
- Correct Answer:
- All of the above
- Carefully read the question and answer accordingly. When you will chose to run RUNSTATS
- Correct Answer:
- All of the above
- Carefully read the question and answer accordingly. At which level VARCHAR host variables must be declared in a COBOL-DB2 program?
- Selected Option:
- 49 - 1.0
- Carefully read the question and answer accordingly. Which of the following statements are valid about data retrieval paths?
- Correct Answer:
- To use an attribute as a data retrieval path, an index should be set on the attribute
- Carefully read the question and answer accordingly. Which is the field in SQLCA contains the number of rows affected by a DB2 Insert/Delete after the execution of the query.
- Correct Answer:
- SQLERRD
- Carefully read the question and answer accordingly. Which of the following ways a DCLGEN ouptut can be used in a COBOL-DB2 program?
- Correct Answer:
- Using EXEC SQL INCLUDE statement
- Using COPY statement
- ____________________________________________________________________________
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-AAA PIC 9(2) VALUE 10.
- 05 WS-BBB PIC 9(2) VALUE 20.
- 05 WS-CCC PIC 9(2) VALUE 30.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MULTIPLY WS-AAA BY WS-BBB GIVING WS-CCC.
- DISPLAY "WS-AAA :" WS-AAA.
- DISPLAY "WS-BBB :" WS-BBB.
- DISPLAY "WS-CCC :" WS-CCC.
- By considering the above code snippet select the appropriate output?
- Selected Option:
- WS-AAA :10 WS-BBB :20 WS-CCC :00 - 1.0
- Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
- ELSE MOVE A TO B.
- Which of the following describes the above sentence correctly
- Correct Answer:
- IF A NOT = 1 AND 2 AND 3 MOVE A TO B
- arefully read the question and answer accordingly. In DATA DIVISION the entries are
- 01 BILL-AMT.
- 02 A PIC 99.
- 02 FILLER PIC X(7).
- Indicate which one of the following statement in the Procedure division is corre
- Correct Answer:
- MOVE ZEROS TO A.
- Carefully read the question and answer accordingly. I HAVE FOLLOWING DECLARATION.
- 02. A PIC X(10) VALUE 'XXXXXXXXXX'.
- 02. B REDEFINES A.
- 05. C PIC X(3).
- 05. D PIC X(3).
- 05. E PIC 9(3).
- IN MY PROG, I HAVE
- MOVE 1 TO E.
- DISPLAY A.
- WHAT WILL BE DISPLAYED AS A RESULT OF THIS?
- Correct Answer:
- XXXXXX001X
- Carefully read the question and answer accordingly. Four data-names DATA-1, DATA-2, DATA-3 and
- DATA-4 are defined as following
- Data-name PIC clause Value Initialized to
- DATA-1 999 015
- DATA-2 999 005
- DATA-3 999 000
- DATA-4 999 000
- On executing the PROCEDURE DIVISION statement
- DIVIDE DATA-1 INTO DATA-2 GIVING DATA-3
- REMAINDER DATA-4
- These data-names will respectively assume values:
- Correct Answer:
- 15,5,0,5
- Carefully read the question and answer accordingly. SORT REPORT-FILE
- ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
- USING INPUT-FILE GIVING OUTPUT-FILE.
- Which one of the following is false.
- Correct Answer:
- The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
- Carefully read the question and answer accordingly. 01 AAA pic 9(4).
- 01 BBB pic 9(6).
- move 123456 into BBB.
- move BBB to AAA.
- display BBB.
- what would be the value of AAA
- Correct Answer:
- 3456
- Carefully read the question and answer accordingly. 01 WS-OUTPUT PIC ZZZZVZZ.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE 0 TO WS-OUTPUT.
- DISPLAY "OUTPUT WILL BE : " WS-OUTPUT.
- By considering the above code snippet what will be the value of WS-OUTPUT
- Correct Answer:
- OUTPUT WILL BE : bbbbbb Here b is considered as blank space
- Carefully read the question and answer accordingly. Consider the following COBOL data definition:
- 01 WS-TRANSACTION-RECORD.
- 05 WS-STATUS PIC X.
- 88 VALID-STATUS VALUES "A", "B", "C", "D".
- 88 MARRIED VALUE "A".
- 88 SINGLE VALUE "B".
- 88 SEPARATED VALUE "C".
- 88 DIVORCED VALUE "D".
- Four of the five IF conditions below are equivalent. Identify the odd one.
- Correct Answer:
- IF MARRIED AND SINGLE AND SEPARATED AND DIVORCED
- Which of the following modes, when used with the LOCK TABLE statement, will cause the DB2 Database Manager to acquire a table-level lock that prevents other concurrent transac-tions from accessing data stored in the table while the owning transaction is active?
- Correct Answer:
- XCLUSIVE MODE
- Carefully read the question and answer accordingly. Which of the following statements are true with respect to COMMIT statement?
- Correct Answer:
- The COMMIT Statement is used to store whatever changes have been made on data. If we don't execute a COMMIT Command, it'll executed implicitly when the thread terminates
- Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
- Correct Answer:
- ROLLBACK
- Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
- Correct Answer:
- Repeatable Read
- Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Find the maximum, minimum, and average bonus in the table EMP. Execute the statement with uncommitted read isolation, regardless of the value of ISOLATION with which the plan or package containing the statement is bound. Assign 17 as the query number for the SELECT statement
- By considering the above scenario select the appropriate query
- Correct Answer:
- SELECT MAX(BONUS), MIN(BONUS), AVG(BONUS) FROM EMP_TABLE WITH UR QUERYNO 17;
- Carefully read the question and answer accordingly. Which of the following gives the scenario where a deadlock get released?
- Correct Answer:
- The deadlock is released only when one process is timed out
- Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
- Correct Answer:
- Repeatable Read
- Carefully read the question and answer accordingly. Which of the following DB2 UDB isolation levels will only lock rows during read process-ing if another transaction tries to drop the table the rows are being read from?
- Correct Answer:
- Uncommitted Read
- Carefully read the question and answer accordingly. Which of the following implementation helps in continuing processing from the last successfully processed point within a given DB2 program?
- Correct Answer:
- Declaration of cursors
- Carefully read the question and answer accordingly. Which of the following SQLSTATE codes is interpreted as "No data returned"?
- Correct Answer:
- 22xxx
- Carefully read the question and answer accordingly. Which of the following error trapping method in a DB2 program does not set sql error codes?
- Correct Answer:
- By using WHENEVER clause.
- Carefully read the question and answer accordingly. Which is the DB2 error routine commonly used to trap the errors ?
- Correct Answer:
- DSNTIAR
- Carefully read the question and answer accordingly. What SQLCODE will occur when there is a deadlock or timeout error?
- Correct Answer:
- -911
- Carefully read the question and answer accordingly. Which of the following error trapping method in a DB2 program does not set sql error codes?
- Correct Answer:
- By using WHENEVER clause.
- Carefully read the question and answer accordingly. How should a VARCHAR field be declared in the host variables structure in a COBOL-DB2 program?
- Correct Answer:
- A length field with S9(4) COMP and text field with the maximum length of the string expected in field
- Carefully read the question and answer accordingly. Which of the following are valid SQL commands that can be used when declaring cursors?
- Correct Answer:
- ORDER BY
- Carefully read the question and answer accordingly. In which of the following scenarios the NULL indicator returns a positive value?
- Correct Answer:
- Column is not null
- Carefully read the question and answer accordingly. Which of the following could be the reason if a CLOSE cursor statement is NOT successful?
- Correct Answer:
- The cursor is not in OPEN state
- Carefully read the question and answer accordingly. Select the appropriate options with respect to VARCHAR data type
- Correct Answer:
- Varchar data type is having two components. Length & Text component
- Carefully read the question and answer accordingly. Which of the following are mandatory when declaring a cursor in a DB2 program?
- Correct Answer:
- Cursor Name
- Carefully read the question and answer accordingly. Which of the following will make a column accept a NULL value in DB2?
- Correct Answer:
- Declare the columns WITH DEFAULT NULL explicitly during creation of table
- Declare the columns with no specific qualifying clause meant for NULL
- Carefully read the question and answer accordingly. Which of the following are specifically taken care by the 'for UPDATE OF' clause in cursor handling?
- Correct Answer:
- Ensure Data integrity during updation
- Carefully read the question and answer accordingly. When you issue a COMMIT statement in the program then the Cursor get closed.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What is the meaning of S0C4 Abend?
- Correct Answer:
- PROTECTION EXCEPTION
- Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
- ELSE MOVE A TO B.
- Which of the following describes the above sentence correctly
- Correct Answer:
- F A NOT = 1 AND 2 AND 3 MOVE A TO B
- Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
- 01 WS1 PIC **999.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE 01234 TO WS1.
- DISPLAY "FIRST VALUE :" WS1.
- MOVE 00012 TO WS1.
- DISPLAY "SECOND VALUE :" WS1.
- STOP RUN.
- consider the above code snippet and select the appropriate option.
- Correct Answer:
- The SYSOUT will be as below FIRST VALUE :*1234 SECOND VALUE :**012
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-A PIC 9(2) VALUE 10.
- 05 WS-B PIC 9(2) VALUE 20.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- SUBTRACT 15 FROM WS-A WS-B.
- DISPLAY "WS-A :" WS-A.
- DISPLAY "WS-B :" WS-B.
- By considering the above code snippet what will be the value of WS-A & WS-B?
- Correct Answer:
- WS-A :05 WS-B :05
- Carefully read the question and answer accordingly. MOVE FUNCTION CURRENT-DATE TO WS-CURRENT-DATE-FIELDS
- By considering the above move statement, select the appropriate option to define the WS-CURRENT-DATE-FIELDS in working storage section.
- Selected Option:
- 01 WS-CURRENT-DATE-FIELDS. 05 WS-CURRENT-TIME. 10 WS-CURRENT-HOUR PIC 9(2). 10 WS-CURRENT-MINUTE PIC 9(2). 10 WS-CURRENT-SECOND PIC 9(2). 10 WS-CURRENT-MS PIC 9(2). 05 WS-CURRENT-DATE. 10 WS-CURRENT-YEAR PIC 9(4). 10 WS-CURRENT-MONTH PIC 9(2). 10 WS-CURRENT-DAY PIC 9(2). 05 WS-DIFF-FROM-GMT PIC S9(4). - 0.0
- Correct Answer:
- 01 WS-CURRENT-DATE-FIELDS. 05 WS-CURRENT-DATE. 10 WS-CURRENT-YEAR PIC 9(4). 10 WS-CURRENT-MONTH PIC 9(2). 10 WS-CURRENT-DAY PIC 9(2). 05 WS-CURRENT-TIME. 10 WS-CURRENT-HOUR PIC 9(2). 10 WS-CURRENT-MINUTE PIC 9(2). 10 WS-CURRENT-SECOND PIC 9(2). 10 WS-CURRENT-MS PIC 9(2). 05 WS-DIFF-FROM-GMT PIC S9(4).
- Carefully read the question and answer accordingly. State True or False
- X(10) can be redefined with x(20).
- orrect Answer:
- T
- Carefully read the question and answer accordingly. In the example below 05 WS-VAR1 PIC X(5),05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5),PROCEDURE DIVISION MOVE 'ABCDE' TO WS-VAR1.Now what is the value of WS-VAR1 and WS-VAR2 ?
- Correct Answer:
- S-VAR1 = ABCDE WS-VAR2 = Low values or Spaces
- Carefully read the question and answer accordingly. Suppose a program has the following code. What will be the output?
- MAIN-PARA.
- DISPLAY 'MAIN-PARA'
- PERFORM SECTION-C.
- STOP RUN.
- SECTION-C.
- PARA-A1.
- DISPLAY 'SECTION A PARA A1'.
- PARA-A2.
- DISPLAY 'SECTION A PARA A2'.
- Selected Option:
- Correct Answer:
- MAIN-PARA SECTION A PARA A1 SECTION A PARA A2
- Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
- 01 WS1 PIC ZZ999.
- 01 WS2 PIC $ZZ999.
- 01 WS3 PIC 9999CR.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE 01234 TO WS1.
- MOVE 123 TO WS2.
- MOVE -1234 TO WS3.
- DISPLAY WS1.
- DISPLAY WS2.
- DISPLAY WS3.
- STOP RUN.
- consider the above code snippet and select the appropriate option.
- Correct Answer:
- The SYSOUT will be as below b1234 $bb123 1234CR
- Carefully read the question and answer accordingly. Which of the following are specifically taken care by the 'for UPDATE OF' clause in cursor handling?
- Correct Answer:
- Ensure Data integrity during updation
- Carefully read the question and answer accordingly. When you issue a COMMIT statement in the program then the Cursor get closed.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Unsigned Packed Decimal number 2431 will be stored as
- Correct Answer:
- 02431F
- Carefully read the question and answer accordingly. A1, A2 and A3 are condition-names. Consider the following compound conditions:
- A. A1 OR A2 OR A3
- B. A1 AND A2 AND A3
- C. A1 OR (A2 AND A3)
- D. A1 AND (A2 OR A3)
- If A1 is known to evaluate to 'False' which of the above four conditions can be evaluated without additional information?
- Correct Answer:
- ALL (All conditions evaluate to 'False')
- Carefully read the question and answer accordingly. Select the allowed data items available in COBOL
- Correct Answer:
- 9 V S X
- Carefully read the question and answer accordingly. Which of the following statements is FALSE about RENAMES clause?
- orrect Answer:
- RENAME clause can regroup a 01, 77, 88 or 66 entry
- Carefully read the question and answer accordingly. State TRUE or FALSE
- CONVERTING and REPLACING plays the same role in INSPECT verb
- Correct Answer:
- F
- Carefully read the question and answer accordingly. What procedures can be specified on the MERGE verb?
- Correct Answer:
- only output procedure
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-AAA PIC 9(2) VALUE 10.
- 05 WS-BBB PIC 9(2) VALUE 20.
- 05 WS-CCC PIC 9(2) VALUE 30.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MULTIPLY WS-AAA BY WS-BBB GIVING WS-CCC.
- DISPLAY "WS-AAA :" WS-AAA.
- DISPLAY "WS-BBB :" WS-BBB.
- DISPLAY "WS-CCC :" WS-CCC.
- By considering the above code snippet select the appropriate output?
- Correct Answer:
- WS-AAA :10 WS-BBB :20 WS-CCC :00
- Carefully read the question and answer accordingly. 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 ?
- orrect Answer:
- 5
- Carefully read the question and answer accordingly. 05 VAR-A PIC 9(9).99.
- 05 VAR-B PIC X(10).
- PROCEDURE DIVISION.
- MOVE 12345.99 TO VAR-A.
- MOVE 12345.99 TO VAR-B.
- DISPLAY VAR-A.
- DISPLAY VAR-B.
- Output will be
- Correct Answer:
- Compilation Error
- Carefully read the question and answer accordingly. Match the following select the right option
- 1. COMP - a. Single Precision Floating point
- 2. COMP1 - b. Double Precision Floating point
- 3. COMP2 - c. Packed Decimal Format
- 4. COMP3 - d. Binary Storage Format
- Correct Answer:
- 1 - d 2 - a 3 - b 4 - c
- Carefully read the question and answer accordingly. c = 0, d = 9…..
- Perform until c > d
- Add 2 to a
- End-perform
- How many additions are performed?
- Correct Answer:
- 5
- Carefully read the question and answer accordingly. The following entries appear in the WORKING-STORAGE SECTION:
- 01 DATE-TDY.
- 05 YY PIC XX VALUE "90".
- 05 MM PIC XX VALUE "12".
- 05 DD PIC XX VALUE :31".
- 01 DATE-EDIT PIC XX/XX/XX.
- MOVE DATE-TDY TO DATE-EDIT.
- Correct Answer:
- 901231
- Carefully read the question and answer accordingly. Identify which of these are the correct declaration?
- 1) 01 VAR1 VALUE 'ABCDE'.
- 05 VAR2 PIC X(3).
- 05 VAR3 PIC X(2).
- 2) 01 VAR1.
- 05 VAR2 PIC X(3) VALUE 'ABC'.
- 05 VAR3 PIC X(2) VALUE 'DE'.
- 3) 01 VAR1 VALUE 'ABCDE'.
- 05 VAR2 PIC X(3) VALUE 'ABC'.
- 05 VAR3 PIC X(2) VALUE 'DE'.
- 4) 01 VAR1 PIC X(5) VALUE 'ABCDE'.
- 05 VAR2 PIC X(3).
- 05 VAR3 PIC X(2).
- Selected Option:
- Correct Answer:
- 1 and 2
- Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
- ELSE MOVE A TO B.
- Which of the following describes the above sentence correctly
- Correct Answer:
- IF A NOT = 1 AND 2 AND 3 MOVE A TO B
- Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
- 01 WS1 PIC ZZ999.
- 01 WS2 PIC $ZZ999.
- 01 WS3 PIC 9999CR.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE 01234 TO WS1.
- MOVE 123 TO WS2.
- MOVE -1234 TO WS3.
- DISPLAY WS1.
- DISPLAY WS2.
- DISPLAY WS3.
- STOP RUN.
- consider the above code snippet and select the appropriate option.
- orrect Answer:
- The SYSOUT will be as below b1234 $bb123 1234CR
- Carefully read the question and answer accordingly. •What is the result of the following?
- MOVE 0 TO VAR1
- EVALUATE TRUE
- WHEN VAR1=1
- PERFORM PARA-1
- WHEN VAR1=2
- PERFORM PARA-2
- WHEN OTHER
- PERFORM PARA-3
- END-EVALUATE.
- Correct Answer:
- PARA-3 will be performed
- Carefully read the question and answer accordingly. In code snippet, how many times the paragraph CALC-PARA will be executed?
- PERFORM CALC-PARA THRU CALC-PARA-EXIT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 13.
- Correct Answer:
- 12
- Carefully read the question and answer accordingly. What is wrong with the following data declaration?
- 01 W-DATE PIC X(6).
- 05 DD PIC 99.
- 05 MM PIC 99.
- 05 YY PIC 99.
- Correct Answer:
- PIC can't be specified for a group item.
- Carefully read the question and answer accordingly. Which of the following variable declarations are syntactically correct?
- (1) 01 V-1 PIC SX(4).
- (2) 01 V-2 PIC S9(4).
- (3) 01 V-1 PIC V99.
- (4) 01 V-1 PIC P99.
- (5) 01 V-1 PIC 9(4)S.
- (6) 01 V 1 PIC X(4).
- Correct Answer:
- 2, 3 and 4
- Carefully read the question and answer accordingly. consider the following
- FD FILE-1
- 01 REC-1 PIC X(80)
- ......
- WORKING-STORAGE SECTION
- 01 W-REC PIC X(90)
- ........
- PROCEDURE DIVISION
- FIRST-PARA
- .......
- READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
- which of the following is true with respect to the above?
- Selected Option:
- REC-1 will contain nothing and W-REC will contain the contains of the record read - 0.0
- Correct Answer:
- REC-1 and W-REC contain the same data
- Carefully read the question and answer accordingly. •According to the given declarations in Data Division. How many elementary items are described below?
- 05 CALENDAR-DATE.
- 08 CALENDAR-DAY PIC 99.
- 08 CALENDAR-MON PIC 99.
- 08 CALENDAR-YEAR PIC 99.
- 05 FILLER PIC X(5).
- 05 VAR1 PIC XX.
- 05 VAR2 PIC X.
- 05 END-DATE.
- 10 FILLER PIC X(4).
- 10 END-YEAR PIC 99.
- Selected Option:
- 3 - 0.0
- Correct Answer:
- 6
- Carefully read the question and answer accordingly. In DATA DIVISION the entries are
- 01 BILL-AMT.
- 02 A PIC 99.
- 02 FILLER PIC X(7).
- Indicate which one of the following statement in the Procedure division is correct
- Selected Option:
- MOVE ZEROS TO A. - 1.0
- Carefully read the question and answer accordingly. What should be usage clause if a dat item declared as PIC s9(4) requires storage of 3 bytes ?
- Selected Option:
- COMP-3 - 1.0
- Correct Answer:
- COMP-3
- Quiz Results
- Which of the following defines a variable length table?
- 01 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
- Carefully read the question and answer accordingly. The command use to identify the changes that have made to the program/file without SAVING the changes (without getting out of
- this screen)?
- Selected Option:
- COMP 'PGMNAME' - 0.0
- Correct Answer:
- COMP * X
- 4)Carefully read the question and answer accordingly. Which of the following gives the correct syntax to define the record descriptions in the FILE SECTION if there are three different record descriptions for the same file?
- Correct Answer:
- FD filename DATA RECORDS ARE RD01, RD02, RD03. 01 RD01 PIC X(n). 01 RD02 PIC X(n). 01 RD03 PIC X(n).
- 5)Carefully read the question and answer accordingly. State True of False
- READ NEXT RECORD is specified when an index sequential file is being read sequentiall
- Correct Answer:
- T
- Carefully read the question and answer accordingly. PERFORM RANGE-TO-BE-EXECUTED
- VARYING E FROM 1 BY 1 UNTIL I>15
- AFTER F FROM 1 BY 1 UNTIL J>10
- Correct Answer:
- The range RANGE-TO-BE-EXECUTED will be performed 150 times
- arefully read the question and answer accordingly. Consider the following scenario.
- Program COB1 is present in the Load Library - TCHN666.PGM.LOAD. What happens when the following code snippet is executed.
- //*** JOB ***
- //STEP01 EXEC PGM=COB1
- //STEPLIB DD DSN=TCHN666.PGM.LOAD1,DISP=SHR
- //INFILE DD DSN=TCHN666.FILE.INP,DISP=SHR
- Correct Answer:
- 806
- Carefully read the question and answer accordingly. What is the content of RESULT after execution of the following COBOL instruction. The start
- value of RESULT is 0.
- PERFORM VARYING COUNT FROM 1 BY 1 UNTIL COUNT = 6
- COMPUTE RESULT = RESULT + 1
- END-PERFORM
- orrect Answer:
- 5
- Carefully read the question and answer accordingly. Suppose a program has the following code. What will be the output?
- MAIN-PARA.
- DISPLAY 'MAIN-PARA'
- PERFORM SECTION-C.
- STOP RUN.
- SECTION-C.
- PARA-A1.
- DISPLAY 'SECTION A PARA A1'.
- PARA-A2.
- DISPLAY 'SECTION A PARA A2'.
- Correct Answer:
- MAIN-PARA SECTION A PARA A1 SECTION A PARA A2
- Carefully read the question and answer accordingly. What are all the below intrinsic date functions are valid?
- Selected Option:
- COMPUTE WS-JULIAN-DATE = FUNCTION DAY-OF-INTEGER (WS-INTEGER-DATE) - 0.0
- Correct Answer:
- None of the listed option
- Carefully read the question and answer accordingly. IF VAR1 = 'A' OR 'B' OR 'C' THEN
- NEXT SENTENCE
- ELSE
- MOVE VAR1 TO VAR2
- Above code snippet can be best described as
- Selected Option:
- IF VAR1 NOT = 'A' AND 'B' AND 'C' THEN MOVE VAR1 TO VAR2 - 0.0
- Correct Answer:
- All of the above
- Carefully read the question and answer accordingly. Consider the following program segment.
- A1.
- PERFORM A2 THRU A3 VARYING A FROM 1 BY 1 UNTIL A = 4.
- DISPLAY A.
- STOP RUN.
- A2.
- ADD 1 TO A.
- ADD A TO SUM
- A3.
- EXIT.
- Indicate which of the following will take place.
- Correct Answer:
- There will be an infinite loop.
- Carefully read the question and answer accordingly. A COBOL programmer wants to repeat an instruction 8 times. How can he/she code this?
- Correct Answer:
- PERFORM 8 TIMES instruction END-PERFORM
- Carefully read the question and answer accordingly. Which of the following variable names for data items are syntactically correct?
- Correct Answer:
- TOTAL-NUMBER-OF-LINES-PER-TEST
- Carefully read the question and answer accordingly. Select the OCCURS statement which is syntactically wrong.
- Correct Answer:
- WORKING-STORAGE SECTION. 05 WS-TABLE1 OCCURS 100 INDEXED BY INX-B PIC X(5).
- Carefully read the question and answer accordingly. WHEN OTHER is mandatory in EVALUATE structure.
- State True or False.
- Correct Answer:
- FALSE
- Carefully read the question and answer accordingly. What is the physical storage length of each of the
- following DB2 data types: DATE, TIME, TIMESTAMP resp.?
- Correct Answer:
- 4 bytes,3 bytes,10bytes
- Carefully read the question and answer accordingly. Complete the following sentence correctly:
- A database can not be dropped …
- Correct Answer:
- ... while a DB2 utility has control of any part of the database.
- number of tables joined in FROM clause for better performance.
- State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. List down all the valid types of relationships (Cardinality)
- Correct Answer:
- One-to-One One-to-Many Many-to-One Many-to-Many
- Carefully read the question and answer accordingly. Which of the following deletion rules on CREATE TABLE will allow parent table rows to be deleted if a dependent row exists?
- Correct Answer:
- ON DELETE CASCADE
- Carefully read the question and answer accordingly. When declaring a foreign key on a table, referencing an existing primary key with complete definition,
- what might differ between foreign key and primary key?
- Correct Answer:
- The nullability of one of the included columns.
- Carefully read the question and answer accordingly. Which of the following tools can be used to automate table reorganization operations?
- Correct Answer:
- Task Center
- Carefully read the question and answer accordingly. A view is created with columns from three tables.
- Which of the following is True with respect to updating the view?
- Correct Answer:
- Cannot update any column referred in the view
- Carefully read the question and answer accordingly. Which of the following happens, if an embedded SQL statement is coded from the 45th column?
- Correct Answer:
- There is no error
- Carefully read the question and answer accordingly. How many indexes can be created for a single table ?
- Correct Answer:
- 250
- Carefully read the question and answer accordingly. How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy
- Correct Answer:
- 8 bytes
- Carefully read the question and answer accordingly. Mismatch in LRECL or BLKSIZE or RECFM between COBOL program and the JCL gives you a file status of
- Correct Answer:
- 39
- Carefully read the question and answer accordingly. Which one of the following is incorrect?
- Correct Answer:
- SUBTRACT A FROM D, B FROM E, C FROM F
- Carefully read the question and answer accordingly. What is the chief disadvantage of using ACCEPT statement?
- Correct Answer:
- The end-of-file cannot be recognized
- Carefully read the question and answer accordingly. What is the chief disadvantage of using ACCEPT statement?
- Correct Answer:
- The end-of-file cannot be recognized
- Carefully read the question and answer accordingly. State whether True or False. Can REDEFINES clause be used for '05' level items in FD SECTION?
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following database models do not support Many-to-Many relationships?
- Correct Answer:
- Hierarchical
- arefully read the question and answer accordingly. EXEC SQL DECLARE C1 CURSOR FOR
- SELECT *
- FROM EMPLOYEE
- FOR UPDATE OF JOB_DET;
- EXEC SQL OPEN C1;
- EXEC SQL FETCH C1 INTO ... ;
- Based on the sample code above, how do you change the JOB_DET of a certain employe
- Correct Answer:
- EXEC SQL UPDATE EMPLOYEE SET JOB_DET = :newjob WHERE CURRENT OF C1;
- Carefully read the question and answer accordingly. The SQL statement SELECT SUBSTR('123456789', INSTR('abcabcabc','b'), 4) FROM POLICY; prints
- Correct Answer:
- 2345
- Carefully read the question and answer accordingly. Consider the following:
- DECLARE CURS CURSOR
- FOR
- SELECT *
- FROM TAB1
- WHERE COL1 > :NUM
- Which of the following embedded SQL statements will NOT generate an error?
- Correct Answer:
- FETCH CURS INTO :HOSTTAB1:IND
- Carefully read the question and answer accordingly. Consider the following table 'FAMOUS':
- EMP FNAME LNAME
- 001 ALEXIS LEON
- 002 M JACKSON
- 003 J LENNON
- 004 TENDULKAR
- What is the result of thefollowing query?
- SELECT COUNT (*) FNAME FROM FAMOUS
- Correct Answer:
- Returns the count of the Records in the column FNAME as 4
- Carefully read the question and answer accordingly. Consider the following declarations in COBOL:
- 01 PERSON.
- 10 PNUMBER PIC S9(9) COMP.
- 10 PLASTNAME PIC X(40).
- 10 PFIRSTNAME.
- 49 PFIRSTNAME-LEN PIC S9(4) COMP.
- 49 PFIRSTNAME-TEXT PIC X(20).
- 01 NUM PIC 9(9).
- 01 INDICATOR.
- 10 IND PIC S9(4) COMP OCCURS 3 TIMES.
- The column PNUMBER is the primary key. Which of the following embedded SQL statements is
- correct?
- Correct Answer:
- SELECT * INTO :PERSON:IND FROM PERSON WHERE PNUMBER = :NUM
- Carefully read the question and answer accordingly. Given the following table:
- CURRENT_EMPLOYEE
- EMPID INTEGER NOT NULL
- NAME CHAR(20)
- SALARY DECIMAL(10,2)
- PAST_EMPLOYEE
- EMPID INTEGER NOT NULL
- NAME CHAR(20)
- SALARY DECIMAL(10,2)
- Assuming both tables contain data, which of the following statements will NOT successfully add data to table CURRENT_EMPLOYEE?
- Correct Answer:
- INSERT INTO current_employee (name, salary) VALUES (SELECT name, salary FROM past_employee WHERE empid = 20)
- Carefully read the question and answer accordingly. INSERT INTO STAFF (SELECT MIN(EMPNO), EMPNAM FROM EMPTAB)
- By considering the above which query will give the result set?
- Correct Answer:
- Selects the employee number, employee name from employee table and inserts minimum EMPNO and EMPNAM records into STAFF table.
- Carefully read the question and answer accordingly. Consider the following table:
- EMPLOYEES
- EMPNO EMPNAME
- --------- ------------------
- 100 GEORGE
- 120 JAYANTH
- 115 TONY
- 112 PRIYANKA
- 125 SANJAY
- 130 KAREENA
- 140 KAREENA
- The query SELECT DISTINCT EMPNAME FROM EMPLOYEES ORDER BY EMPNO is executed on the above table.
- What will be the correct result set retrieved by the above query?
- Correct Answer:
- GEORGE PRIYANKA TONY JAYANTH SANJAY KAREENA
- Carefully read the question and answer accordingly. How do you create an index on the product table on the column PRODNUM?
- Correct Answer:
- CREATE INDEX IDX_PRODNUM ON PRODUCT (PRODNUM);
- Carefully read the question and answer accordingly. Which one of the following do you use to place the value of today's date into the variable "program_date"?
- Correct Answer:
- set program_date = current date
- Carefully read the question and answer accordingly. POLICY_ID POLICY_CODE POLICY_NAME
- ---------+---------+---------+-----
- A1001 POLICYCD1 HEALTHCARE
- A1002 POLICYCD2 FAMILYCARE
- A1003 POLICYCD3 CHILD CARE
- A1005 POLICYCD5 HEALTHCARE
- POLICYID POLICYCODE POLICYNAME
- ---------+---------+---------+--
- B2001 POLICYCD6 HEALTHCARE
- B2002 POLICYCD7 FAMILYCARE
- B2003 POLICYCD8 CHILD CARE
- B2005 POLICYCD0 HEALTHCARE
- By considering the above two tables what will be the resultant set if we execute the below query
- SELECT TB_POLICY2.POLICYID FROM TB_POLICY2 WHERE TB_POLICY2.POLICYID IN
- (SELECT TB_POLICY1.POLICY_ID FROM TB_POLICY1 WHERE POLICY_NAME = 'HEALTHCARE');
- Selected Option:
- empty result set - 1.0
- Carefully read the question and answer accordingly. SELECT ID, DEPT
- FROM EMPTAB
- WHERE ID NOT IN 100
- ORDER BY ID;
- By considering the above which query w
- Correct Answer:
- This Query will select ID, DEPT rows from EMPTAB for ID not equal to 100.
- Carefully read the question and answer accordingly. CREATE TABLE DSN81010.DEPT
- (DEPTNO CHAR(3) NOT NULL,
- DEPTNAME VARCHAR(36) NOT NULL,
- MGRNO CHAR(6),
- ADMRDEPT CHAR(3) NOT NULL,
- LOCATION CHAR(16),
- PRIMARY KEY (DEPTNO)
- )
- IN DSN8D10A.DSN8S10D;
- ALTER TABLE DSN81010.DEPT
- FOREIGN KEY RDD (ADMRDEPT)
- REFERENCES DSN81010.DEPT ON DELETE CASCADE;
- From the above query what is the purpose of defining ON DELETE CASCADE ?
- Selected Option:
- Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it. - 1.0
- Carefully read the question and answer accordingly. CREATE TABLE emp_table
- (
- CUSTID INTEGER NOT NULL,
- CUSTNAME CHAR(10) NOT NULL
- )IN DB.TS;
- CREATE UNIQUE INDEX IN_2 ON emp_table(CUSTID);
- INSERT INTO emp_table VALUES(101,' JOSEPH ');
- INSERT INTO emp_table VALUES(102,'ANTONY');
- INSERT INTO emp_table VALUES(103,' ALICE ');
- INSERT INTO emp_table VALUES(104,'PETER ');
- SELECT LTRIM(CUSTNAME) FROM emp_table;
- what will be the outcome of above select query?
- Selected Option:
- JOSEPH ANTONY ALICE PETER - 1.0
- Carefully read the question and answer accordingly. When a column has an extension of WITH DEFAULT NULL, and a unique index is created on this column, what will be the effects on the possible null values in that column?
- Selected Option:
- There is still a single null allowed, since it is unique as such. - 1.0
- refully read the question and answer accordingly. CREATE TABLE DATE_TBL
- (
- CUSTID INTEGER NOT NULL,
- CUSTHIRE_DT DATE NOT NULL
- )IN DBTCHN05.TSCAT02;
- CREATE UNIQUE INDEX IN_4 ON DATE_TBL(CUSTID);
- INSERT INTO DATE_TBL VALUES(1111001,'2012-01-04');
- INSERT INTO DATE_TBL VALUES(1111002,'2010-02-05');
- INSERT INTO DATE_TBL VALUES(1111003,'2011-03-06');
- select the answer which is suitable to the above query after e
- Correct Answer:
- CUSTID YEAR MONTH DAY 1111001 2012 1 4 1111002 2010 2 5 1111003 2011 3 6
- Carefully read the question and answer accordingly. Customers Table
- FirstName LastName Email DOB Phone
- John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222
- Steven Goldfish goldfish@fishhere.net 4/4/1974 323 455-4545
- Paula Brown pb@herowndomain.org 5/2/1978 416 323-3232
- James Smith jim@supergig.co.uk 2/1/1980 416 323-8888
- Please select the appropriate result set after executing the below queries
- Query 1: SELECT * FROM Customers WHERE LastName = 'Smith';
- Query 2: SELECT * FROM Customers WHERE LastName <> 'Smith';
- Query 3: SELECT * FROM Customers WHERE Phone LIKE '626%';
- Selected Option:
- Query 1: FirstName LastName Email DOB Phone John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222 James Smith jim@supergig.co.uk 2/1/1980 416 323-8888 Query 2: Steven Goldfish goldfish@fishhere.net 4/4/1974 323 455-4545 Paula Brown pb@herowndomain.org 5/2/1978 416 323-3232 Query 3: John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222 - 1.0
- Carefully read the question and answer accordingly. CREATE TABLE STUD_DETAIL(
- STUD_NAME CHAR(10) NOT NULL,
- STUD_GRADE CHAR(1),
- STUD_DEPT CHAR(3) NOT NULL
- CHECK(STUD_DEPT IN('BCA','COM','SCI','BA')),
- PRIMARY KEY(STUD_NAME,STUD_DEPT))
- IN DBTCHN01.TSCEP02;
- CREATE UNIQUE INDEX IX111G ON STUD_DETAIL(STUD_NAME,STUD_DEPT);
- INSERT INTO STUD_DETAIL VALUES('JOSEPH','A','BCA');
- INSERT INTO STUD_DETAIL VALUES('ANTONY','B','BCA');
- INSERT INTO STUD_DETAIL VALUES('KAREEN','A','SCI');
- INSERT INTO STUD_DETAIL VALUES('LEESA','C','BA');
- INSERT INTO STUD_DETAIL VALUES('MARIA','D','COM');
- By considering the above table declaration what will happen if we execute the below two queries
- query 1: SELECT * FROM STUD_DETAIL WHERE STUD_NAME ='JOSEPH' AND STUD_NAME ='ANTONY';
- query 2:SELECT * FROM STUD_DETAIL WHERE STUD_NAME ='JOSEPH' OR STUD_NAME ='ANTONY';
- Selected Option:
- Query 1 will not return any output Query 2 will return the below values ANTONY B BCA JOSEPH A BCA - 1.0
- Carefully read the question and answer accordingly. (SELECT * FROM T1)
- INTERSECT DISTINCT
- (SELECT * FROM T2);
- What the above query wi\
- Correct Answer:
- It produces all rows that are in both table T1 and table T2, with duplicate rows removed:
- 70
- 80
- 80
- 90
- 70
- 90
- Carefully read the question and answer accordingly. Which parameter used to control the job step execution based on the return-code of the previous step.
- Selected Option:
- COND - 1.0
- /STEP02 EXEC PGM=IEFBR14,COND=EVEN
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
- Whether STEP03 will execute ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which statement about tablespaces is true?
- Correct Answer:
- Dropping a tablespace will not only remove all tables of the tablespace itself, but also all indexes created on these tables, even though they are stored separately in their own indexspace.
- Carefully read the question and answer accordingly. Which type of key is defined on the child table to implement a referential constraint?
- Selected Option:
- Foreign key - 1.0
- Carefully read the question and answer accordingly. Which statement about an index is NOT true?
- Selected Option:
- The name of an index can be mentioned in a Select statement, to improve the performance of the query. - 1.0
- Carefully read the question and answer accordingly. If both the JOBCAT & STEPCAT statements are coded in a step, which will take precedence?
- Correct Answer:
- STEPCAT
- Carefully read the question and answer accordingly. Which of the following releases all the unused storage space when the dataset is closed?
- Correct Answer:
- SPACE=( TRK, (10000, 500),RLSE) , UNIT=VTS1
- Carefully read the question and answer accordingly. Consider the following scenario:
- The CI size is 4096 bytes and it currently has 4 records. Record 1 is 1000 bytes. Records 2, 3 and 4 are 1200, 1000, 800 bytes respectively.
- What will happen if the system tries to insert another record of size 1000 bytes?
- Correct Answer:
- Only CI split happens
- Carefully read the question and answer accordingly. Which of the following statements are true?
- Statement 1 : Empty slots is in the data set are used for adding records in LDS.
- Statement 2 : A record cannot be deleted, but you can reuse its space for a record of the same length, in an ESDS.
- Selected Option:
- Statement 1 is false, 2 is true - 1.0
- Carefully read the question and answer accordingly. Which command is used to define the file as a spanned file while creating it?
- Correct Answer:
- SPANNED
- Carefully read the question and answer accordingly. State True or False
- X(10) can be redefined with x(20).
- Selected Option:
- T - 1.0
- Carefully read the question and answer accordingly. A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will
- Correct Answer:
- IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X
- Carefully read the question and answer accordingly. A=10, B=5, C=10, D=5, E=0 What will be the value of E after the following statement ADD A, B TO C, D GIVING E.
- Correct Answer:
- Syntax Error
- Carefully read the question and answer accordingly. Why SELECT * is not prefered in embedded SQL programs?
- Correct Answer:
- All of the above
- arefully read the question and answer accordingly. Which of the following is the correct syntax to call DSNTIAR in DB2?
- Selected Option:
- CALL 'DSNTIAR' USING SQLCA ERROR-MESSAGE ERROR-TEXT-LEN. - 1.0
- Carefully read the question and answer accordingly. What does the DB2 precompiler do?
- Selected Option:
- Expands the SQL. - 1.0
- Carefully read the question and answer accordingly. In DB2, which of the following will NOT be part of Error message area of DSNTIAR?
- Correct Answer:
- SQLCA
- arefully read the question and answer accordingly. What is the sql error code -504 ?
- Selected Option:
- CURSOR NAME cursor-name IS NOT DECLARED - 1.0
- Carefully read the question and answer accordingly. Given the requirements to store customer names, billing addresses, and telephone numbers, which of the following would be the best way to define the telephone number column for a table if all customers were located in the same country?
- Correct Answer:
- PHONE CHAR(15)
- Carefully read the question and answer accordingly. List down the symbols used in ER diagram?
- Correct Answer:
- Box Diamond Oval
- Carefully read the question and answer accordingly. How many indexes can be created for a single table ?
- Correct Answer:
- 250
- Carefully read the question and answer accordingly. What is the Maximum number of columns allowed in a db2 table?
- Correct Answer:
- 224
- Carefully read the question and answer accordingly. MAX function can be used on a column defined as CHAR. State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Select the appropriate option with respect to SPUFI
- Correct Answer:
- It is the DB2 interactive menu-driven tool used by developers to create database objects
- Carefully read the question and answer accordingly. In SQL, the CREATE TABLESPACE is used
- Correct Answer:
- to create a place in the database for storage of scheme objects, rollback segments, and naming the data files to comprise the tablespace.
- Carefully read the question and answer accordingly. During which of the following, DB2 enforces referential integrity?
- Correct Answer:
- UPDATE, DELETE, INSERT and LOAD data operations
- Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Assuming the proper privileges, which two of the following would allow access to data in
- a table T1 using the name A1?
- Correct Answer:
- CREATE VIEW a1 AS SELECT * FROM t1
- Carefully read the question and answer accordingly. Besides on TABLE and TABLESPACE level, on what level can implicit locks be placed by DB2?
- Correct Answer:
- On ROW, PAGE and PARTITION level.
- Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following is a NOT a valid reason for defining a view on a table?
- Correct Answer:
- Produce an action as a result of a change to a table
- Carefully read the question and answer accordingly. A foreign key value in a child table can have null values for some rows even though the primary key it refers to in the parent table cannot have null values.
- State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which DML is used to returns the substring of the string?
- Correct Answer:
- SUBSTR(string name,3,4) 3 - starting position 4 - length
- Carefully read the question and answer accordingly. Which statement about tablespaces is true?
- Correct Answer:
- Dropping a tablespace will not only remove all tables of the tablespace itself, but also all indexes created on these tables, even though they are stored separately in their own indexspace.
- Carefully read the question and answer accordingly. If we need to combine the results of two tables and fetch all rows from them while eliminating duplicates, which of the following needs to be used?
- Correct Answer:
- Union
- Carefully read the question and answer accordingly. Which of the following is not a valid type of Table space?
- Correct Answer:
- Elementry Table Space
- Carefully read the question and answer accordingly. Group By clause does not do any sorting . State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Collections are essentially just a means of giving a name to a logically related set of packages. State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. An unit of work is a recoverable sequence of operations within multiple application processes.
- State True or False.
- Correct Answer:
- FALSE
- Carefully read the question and answer accordingly. Which statement is TRUE with refer to VIEW of the table?
- Correct Answer:
- A VIEW never stores data.
- Carefully read the question and answer accordingly. Primary key can have NULL values.
- State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. What happens when the execution of a utility is terminated by the TERM command?
- Correct Answer:
- The execution ends normally, the corresponding row in the SYSUTIL table is removed, all resources are freed.
- Carefully read the question and answer accordingly. Given the requirements to store customer names, billing addresses, and telephone numbers, which of the following would be the best way to define the telephone number column for a table if all customers were located in the same country?
- Correct Answer:
- PHONE CHAR(15)
- Carefully read the question and answer accordingly. Which of the following is NOT a difference between a unique index and a primary key?
- Correct Answer:
- Unique indexes can be defined over one or more columns; primary keys can only be defined on a single column.
- Carefully read the question and answer accordingly. Which of the following can NOT be used to restrict specific values from being inserted into a column in a particular table?
- Correct Answer:
- Default Constraint
- Carefully read the question and answer accordingly. If the following SQL statements are executed:
- CREATE TABLE tab1 (id SMALLINT NOT NULL PRIMARY KEY, name VARCHAR(25)); CREATE TABLE tab2 (empid SMALLINT, weekno SMALLINT, payamt DECIMAL(6,2), CONSTRAINT const1 FOREIGN KEY (empid) REFERENCES taba(id) ON UPDATE NO ACTION);
- Which of the following statements is true?
- Correct Answer:
- Only values that exist in the ID column of table TAB1 are allowed to be in-serted in the EMPID column of table
- Carefully read the question and answer accordingly. TOUR GUIDE LANGUAGE TOUR_DATE START_TIME END_TIME GROUP_SIZE AVAILABILITY
- Tower of London Paulo Spanish 30/08/2003 09:45:00 11:45:00 20 4
- HMS Discovery Carol German 30/08/2003 10:30:00 12:30:00 16 0
- Saint Paul's Albert French 30/08/2003 10:30:00 12:15:00 16 14
- Tower of London Heidi French 30/08/2003 10:45:00 2:45:00 20 0
- Covent Garden Heidi German 30/08/2003 13:30:00 16:30:00 24 19
- By considering the above table select the proper query to satisfy the below criteria
- Select tours which have the largest group sizes
- Correct Answer:
- SELECT * FROM TOUR_GROUP WHERE GROUP_SIZE = (SELECT MAX(GROUP_SIZE) FROM TOUR_GROUP) ORDER BY TOUR, TOUR_DATE, START_TIME;
- Carefully read the question and answer accordingly. POLICY_ID POLICY_CODE POLICY_NAME
- ---------+---------+---------+-----
- A1001 POLICYCD1 HEALTHCARE
- A1002 POLICYCD2 FAMILYCARE
- A1003 POLICYCD3 CHILD CARE
- A1005 POLICYCD5 HEALTHCARE
- POLICYID POLICYCODE POLICYNAME
- ---------+---------+---------+--
- B2001 POLICYCD6 HEALTHCARE
- B2002 POLICYCD7 FAMILYCARE
- B2003 POLICYCD8 CHILD CARE
- B2005 POLICYCD0 HEALTHCARE
- By considering the above two tables what will be the resultant set if we execute the below query
- SELECT TB_POLICY2.POLICYID FROM TB_POLICY2 WHERE TB_POLICY2.POLICYID IN
- (SELECT TB_POLICY1.POLICY_ID FROM TB_POLICY1 WHERE POLICY_NAME = 'HEALTHCARE');
- Correct Answer:
- Empty result set - 1.0
- Carefully read the question and answer accordingly. SELECT CONCAT (('A' || 'B'), 'C')
- FROM STAFF
- WHERE ID = 10;
- By considering the above which query will give the result set?
- Correct Answer:
- Answer ---------- ABC
- Carefully read the question and answer accordingly. Consider two tables as below
- TAB1 TAB2
- ------- -------
- 10 10
- 20 10
- 30 20
- 40 30
- 50 30
- 40
- 50
- 60
- Output Result:
- -----------------
- 10
- 20
- 30
- 40
- 50
- 60
- Choose the appropriate query to derive the above output.
- Correct Answer:
- SELECT TAB1 FROM TAB1 UNION SELECT TAB2 FROM TAB2 ORDER BY 1;
- Carefully read the question and answer accordingly. After the execution of below query there are no matching rows found. Choose the correct answer.
- SELECT COUNT(*) AS C1
- FROM STAFF
- WHERE ID < 1
- GROUP BY ID;
- Correct Answer:
- C1 ----- no row
- Carefully read the question and answer accordingly. Given the statement:
- CREATE TABLE t1
- ( c1 CHAR(3)
- CONSTRAINT c1
- CHECK (c1 IN ('A01','B01','C01')) )
- DB2 verifies that the table check constraint is met during which of the following actions?
- Selected Option:
- Adding an insert trigger to the table. - 0.0
- Correct Answer:
- Updating any row in the table.
- Carefully read the question and answer accordingly. Given the following table:
- STOCK
- ????????????????????
- CATEGORY CHAR(1)
- PARTNO CHAR(12)
- DESCRIPTION VARCHAR(40)
- QUANTITY INTEGER
- PRICE DEC(7,2)
- If items are indicated to be out of stock by setting DESCRIPTION to NULL and QUANTITY and PRICE to zero, which of the following statements updates the STOCK table to indicate that all items except those with CATEGORY of 'S' are temporarily out of stock?
- Correct Answer:
- UPDATE stock SET (description, quantity, price) = (NULL, 0, 0) WHERE category <> 'S'
- Carefully read the question and answer accordingly. CREATE VIEW VW_TBL
- AS SELECT *
- FROM TB_EMP
- WHERE SUBSTR(EMP_NAME, 1, 3) = 'SHA'
- with respect to above query select the appropriate answer?
- Correct Answer:
- The query will create a VIEW named VW_TBL upon the TB_EMP table that contains only those rows with a employee name starting with the letters SHA
- Carefully read the question and answer accordingly. Given the following statements:
- CREATE TABLE tab1 (c1 INTEGER, c2 CHAR(5));
- CREATE VIEW view1 AS SELECT c1, c2 FROM tab1 WHERE c1 < 100;
- CREATE VIEW view2 AS SELECT c1, c2 FROM view1
- WITH CASCADED CHECK OPTION;
- Which of the following INSERT statements will fail to execute?
- Correct Answer:
- INSERT INTO view2 VALUES(150, 'abc')
- Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
- Correct Answer:
- SUBTRACT A FROM D, B FROM E, C FROM F
- Carefully read the question and answer accordingly. Which term is used to mean hardcoding of SQL in Cobol?
- Correct Answer:
- Embedded SQL
- Carefully read the question and answer accordingly. If there is no row in Emp table with Ename as Raghav and
- you run the below queries in SPUFI.
- 1.select Ename from EMP wher Ename = 'raghav'
- 2.Select count(*) from EMP where Ename = 'raghav'
- What is SQLCODE shown up in SPUFI resp.
- Correct Answer:
- +100,0
- Carefully read the question and answer accordingly. What SQLCODE will occur when there is a deadlock or timeout error?
- Correct Answer:
- -911
- Carefully read the question and answer accordingly. what is the maximum number of tables that can be joined in DB2 V8 ?
- Selected Option:
- 255 - 1.0
- Carefully read the question and answer accordingly. During which of the following, DB2 enforces referential integrity?
- Correct Answer:
- UPDATE, DELETE, INSERT and LOAD data operations
- Carefully read the question and answer accordingly. If we need to combine the results of two tables and fetch all rows from them while eliminating duplicates, which of the following needs to be used?
- Selected Option:
- Union - 1.0
- Carefully read the question and answer accordingly. Which DML is used to returns the substring of the string?
- Selected Option:
- SUBSTR(string name,3,4) 3 - starting position 4 - length - 1.0
- Carefully read the question and answer accordingly. Which of the following is NOT a difference between a unique index and a primary key?
- Correct Answer:
- Unique indexes can be defined over one or more columns; primary keys can only be defined on a single column.
- Carefully read the question and answer accordingly. Which of the following is a NOT a valid reason for defining a view on a table?
- Selected Option:
- Produce an action as a result of a change to a table - 1.0
- Carefully read the question and answer accordingly. Select the appropriate option with respect to CASCADE command in DELETE
- Correct Answer:
- Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it.
- Carefully read the question and answer accordingly. Apart from the WHERE clause, which of the following clause can use NULL?
- Selected Option:
- HAVING - 1.0
- arefully read the question and answer accordingly. When you commit,the cursor is closed.
- Selected Option:
- T - 1.0
- Carefully read the question and answer accordingly. Which of the following are valid SQL commands that can be used when declaring cursors?
- Selected Option:
- ORDER BY - 1.0
- Carefully read the question and answer accordingly. What is the sql error code will throw when a column is having NULL values, however NULL indicator is not coded to it ?
- Selected Option:
- -305 - 1.0
- Carefully read the question and answer accordingly. What is the picture clause of null indicator variable?
- Selected Option:
- S9(4) COMP - 1.0
- Carefully read the question and answer accordingly. What clause must be coded into the DECLARE CURSOR statement if UPDATE WHERE CURRENT OF should be used later?
- Selected Option:
- FOR UPDATE OF - 1.0
- Carefully read the question and answer accordingly. Which of the following are equivalent with respect to use of Null indicator variables in an application program?
- Selected Option:
- EXEC SQL SELECT PHONENO INTO : CBLPHONE INDICATOR : INDNULL FROM EMP WHERE EMPNO = :EMPID END-EXEC. - 1.0
- Carefully read the question and answer accordingly. In which of the following scenarios the NULL indicator returns a positive value?
- Selected Option:
- Column is not null - 1.0
- Carefully read the question and answer accordingly. We can have one cursor open a time in a program.
- Correct Answer:
- F
- arefully read the question and answer accordingly. Which one best describes why cursor is used?
- Selected Option:
- Cursors are used to access set-level data one row at a time. - 1.0
- Carefully read the question and answer accordingly. Which DML is used to returns the substring of the string?
- Selected Option:
- SBSTRING(string name,3,4) 3 - starting position 4 - length - 0.0
- Correct Answer:
- SUBSTR(string name,3,4) 3 - starting position 4 - length
- Carefully read the question and answer accordingly. Which statement about tablespaces is true?
- Correct Answer:
- Dropping a tablespace will not only remove all tables of the tablespace itself, but also all indexes created on these tables, even though they are stored separately in their own indexspace.
- Carefully read the question and answer accordingly. Which of the following statement is TRUE with regard to STOGROUP?
- Correct Answer:
- It is a storage group in DB2 having set of volumes on DASD
- Carefully read the question and answer accordingly. What is true for group by,order by clause?
- Selected Option:
- Selected columns must be column functions or in the group by clause. - 1.0
- Carefully read the question and answer accordingly. Assuming the database has no distinct types, which of the following is an invalid data
- type on CREATE TABLE?
- Correct Answer:
- DATETIME
- Carefully read the question and answer accordingly. Which of the following is a valid wildcard character in a LIKE clause of a SELECT statement?
- Selected Option:
- % - 1.0
- Carefully read the question and answer accordingly. Which of the following is a NOT a valid reason for defining a view on a table?
- Selected Option:
- roduce an action as a result of a change to a table - 1.0
- Carefully read the question and answer accordingly. Collections are essentially just a means of giving a name to a logically related set of packages. State True or False.
- Selected Option:
- T - 1.0
- Carefully read the question and answer accordingly. Select the appropriate option with respect to CASCADE command in DELETE
- Correct Answer:
- Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it.
- Carefully read the question and answer accordingly. Which of the following is TRUE for the System Variable $date$?
- Correct Answer:
- Can be assigned to any field only during design time.
- Carefully read the question and answer accordingly. State TRUE or FALSE
- An entity relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Assuming the database has no distinct types, which of the following is an invalid data
- type on CREATE TABLE?
- Correct Answer:
- DATETIME
- Carefully read the question and answer accordingly. Collections are essentially just a means of giving a name to a logically related set of packages. State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following is not a valid type of Table space?
- Correct Answer:
- Elementry Table Space
- Carefully read the question and answer accordingly. Complete correctly:
- When a user has a SELECT authorization on a certain base table, and he creates a view on that
- table alone, then he/she …
- Correct Answer:
- ... only has a SELECT authorization on that view.
- Carefully read the question and answer accordingly. In a table which contains columns A,B,C,D,E and F, if the columns A and E are declared as primary keys, what will be the result?
- Correct Answer:
- The key declaration works fine.
- 100
- 90
- 100
- 100
- 50
- 100
- 90
- DB2
- Carefully read the question and answer accordingly. Select the appropriate option in which process level the isolation should be specified?
- Correct Answer:
- during BIND process
- Carefully read the question and answer accordingly. We can have one cursor open a time in a
- Correct Answer:
- F
- arefully read the question and answer accordingly. What does it mean if the null indicator has -1 ?
- Correct Answer:
- The field is null
- Carefully read the question and answer accordingly. Select the appropriate options with respect to VARCHAR data type
- Selected Option:
- Varchar data type is having two components. Length & Text component - 1.0
- Carefully read the question and answer accordingly. Which one best describes why cursor is used?
- Correct Answer:
- Cursors are used to access set-level data one row at a time.
- Carefully read the question and answer accordingly. Which of the following are mandatory when declaring a cursor in a DB2 program?
- Selected Option:
- Cursor Name - 1.0
- Carefully read the question and answer accordingly. Which of the following are equivalent with respect to use of Null indicator variables in an application program?
- Correct Answer:
- EXEC SQL SELECT PHONENO INTO : CBLPHONE INDICATOR : INDNULL FROM EMP WHERE EMPNO = :EMPID END-EXEC.
- Carefully read the question and answer accordingly. What clause must be coded into the DECLARE CURSOR statement if UPDATE WHERE CURRENT OF should be used later?
- Correct Answer:
- FOR UPDATE OF
- arefully read the question and answer accordingly. What is the sql error code will throw when a column is having NULL values, however NULL indicator is not coded to it ?
- Selected Option:
- -305 - 1.0
- ___________________________________________
- Carefully read the question and answer accordingly. How to sum the records starting at position 60 of length 5 and how to eliminate duplicates using the sort utility?
- Selected Option:
- 1. Sum fields: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELD=(60,64,ZD) // 2. Eliminate duplicates: //SYSIN DD * SORT FIELDS=(30,10,CH,A) ELIMINATE DUPS // - 0.0
- Correct Answer:
- 1. Sum fields: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELDS=(60,5,ZD) // 2. Eliminate duplicates: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELDS=NONE //
- Carefully read the question and answer accordingly. Select the string handling verbs available in COBOL
- Correct Answer:
- STRING UNSTRING INSPECT
- Carefully read the question and answer accordingly. COMPUTE A=B is valid
- Selected Option:
- T - 1.0
- Carefully read the question and answer accordingly. Which tests are allowed with the following variable?
- 01 END-OF-FILE PIC X.
- 88 EOF VALUE 'N'.
- Selected Option:
- IF END-OF-FILE = 'Y' THEN … - 1.0
- Carefully read the question and answer accordingly. The symbol V in a PIC clause stands for a decimal point between two consecutive digits and is counted for in the field size. State True or False
- Selected Option:
- F - 1.0
- Carefully read the question and answer accordingly. Which of the following is not a procedure division verb?
- Selected Option:
- Insert - 1.0
- Carefully read the question and answer accordingly. What is the way of using a Variable table name in the program?
- Correct Answer:
- Use dynamic SQL.
- Carefully read the question and answer accordingly. What is the DB2 utility used to generate host variables ?
- Selected Option:
- DCLGEN - 1.0
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- MOVE WORK-REC TO OUT-REC.
- WRITE OUT-REC.
- Which of the following is the equivalent single statement that can substitute the above two statements?
- Correct Answer:
- WRITE OUT-REC FROM WORK-REC.
- Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
- Correct Answer:
- DIVIDE A BY B
- Carefully read the question and answer accordingly. REDEFINES clause can appear for a group item whose sub-item contains an OCCURS clause.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. State TRUE or FALSE
- RESTRICT: Disallows the deletion of the primary key row if any foreign keys relate to that row.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Given the requirements to store customer names, billing addresses, and telephone numbers, which of the following would be the best way to define the telephone number column for a table if all customers were located in the same country?
- Correct Answer:
- PHONE CHAR(15)
- Carefully read the question and answer accordingly. When granting and revoking authorizations, which of the following aspects will NOT be taken into consideration by DB2?
- Correct Answer:
- Whether the GRANTEE is an existing user ID for RACF.
- Carefully read the question and answer accordingly. What is the expansion of SPUFI?
- Correct Answer:
- SQL Processor Using File Input
- Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What is the use of DISTINCT verb in DB2 SELECT?
- Correct Answer:
- It eliminates duplicates
- Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. State TRUE or False
- Primary key can only be set in CREATE TABLE command.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which of the following DB2 objects is NOT considered executable using SQL?
- Correct Answer:
- Trigger
- Carefully read the question and answer accordingly. Which of the following database models do not support Many-to-Many relationships?
- Correct Answer:
- Hierarchical
- Carefully read the question and answer accordingly. Which of the following is NOT a valid feature of ISPF?
- Provides an environment for interactive software project management
- Carefully read the question and answer accordingly. TSO is a subsystem that runs on the Mainframe operating system like MVS.
- State True or False.
- True
- Carefully read the question and answer accordingly. Which of the following option needs to be specified when a new dataset is allocated using 3.2 TSO/ISPF option?
- AVERAGE RECORD UNIT
- arefully read the question and answer accordingly. What is the TSO command to convert Lower case to upper case in a dataset ?
- UC
- Carefully read the question and answer accordingly. Which of the following are aliases for the COLUMNS command in ISPF Edit panel?
- COLS
- COL
- Carefully read the question and answer accordingly. How can you display and edit the CLIP board content after issue of CUT command?
- Use CUT DISPLAY
- Carefully read the question and answer accordingly. Which of the following statement is true?
- Command SORT can be used to sort columns in ascending or descending order in a dataset.
- arefully read the question and answer accordingly. What is the command to switch between ISPF screens?
- SWAP
- Carefully read the question and answer accordingly. Which of the following can be changed using Option 0 of ISPF/PDF primary option menu(ISPF PARMS)?
- Terminal type
- Carefully read the question and answer accordingly. What is the command to display the current setting of the PF keys?
- PFSHOW
- Carefully read the question and answer accordingly. Which of the following will identify the hexadecimal characters in a dataset?
- FIND X'0980312'
- Carefully read the question and answer accordingly. Which block command is used to delete the set of codes?
- DD
- Carefully read the question and answer accordingly. What is the command to rename an entire dataset?
- ype R against the dataset name and provide the new name
- Carefully read the question and answer accordingly. Which of the following is the statement that copies a member of the library into the member being edited?
- COPY member {AFTER } lptr [linenum-range] {BEFORE}
- Carefully read the question and answer accordingly. Name the TSO command used to identify the TSO Region ( Development,
- Production, or other TSO regions) are currently logged in ?
- Issue SAREA in the command line
- Carefully read the question and answer accordingly. The command/option to find the last 10 datasets that I have accessed ?
- Option REFLIST in menu bar
- Carefully read the question and answer accordingly. How to keep the command in the command line without doing re-type the same command after its execution?
- Issue command in the command line along with prefix of '&'
- Carefully read the question and answer accordingly. Which of the following cannot be processed by the SuperC program?
- Two VSAM ESDS datasets
- Carefully read the question and answer accordingly. Name the command used to do a wordwrap of 80 characters per line in Mainframe ?
- Issue TF80 command in the line where to do a wordwrap
- Carefully read the question and answer accordingly. Which is the text handling command which allows a text line to be split at the cursor to allow insertion
- TS
- Carefully read the question and answer accordingly. Which of the following IBM utility is used to copy a sequential dataset?\
- IEBEDIT
- Carefully read the question and answer accordingly. what is the maximum number of datasets can be used in SORTIN statement for merge operation ?
- 16
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
- Which are all the steps will get bypassed ?
- STEP02 and STEP03
- Carefully read the question and answer accordingly. Consider a scenario where the below file doesnt exist, what will happen after the execution of the step in JCL ?
- //STEP01 EXEC PGM=IEFBR14
- //CREATEPS DD DSN=TCHN670.TEMP,DISP=MOD,SPACE=(TRK,(1,1),RLSE),
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=80
- TCHN670.TEMP will be created and deleted.
- arefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=EVEN
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),EVEN)
- Whether STEP03 will execute ?
- T
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,NE),(0,LT))
- Which STEPS will get executed
- STEP01 and STEP03
- Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL
- All of the listed options
- Carefully read the question and answer accordingly. In a JCL, a GDG version is created as follows.
- //STEP01 EXEC PGM=SORT
- ….
- //SORTOUT DD DSN=TEST.OUTFILE(+1),DISP=(NEW,CATLG,DELETE)
- How will it be referred as input in the next step of the same JCL?
- TEST.OUTFILE(+1)
- Carefully read the question and answer accordingly. Sate True or False.
- IEBCOPY utility is used to copy a physical sequential dataset.
- T
- Carefully read the question and answer accordingly. Consider the below sort card and choose the correct option.
- SORT FIELDS=(1,3,ZD,A)
- SUM FIELDS=(1,3,ZD)
- Cannot Sum sort keys.
- Carefully read the question and answer accordingly. Is it possible to concatenate datasets having different Block size ?
- T
- Carefully read the question and answer accordingly. What is the prefix character for symbolic parameter
- &
- Carefully read the question and answer accordingly. Sample Code
- //A PROC
- //AS1 EXEC PGM=A124
- //AIN DD DSN=SAMPLE.DATA,DISP=SHR
- //AOUT DD DSN=TEST.SAMPLE,UNIT=SYSDA,
- // SPACE=(CYL,(5,1)),DISP=(NEW,CATLG,DELETE),
- // DCB=(RECFM=FB,LRECL=80,DSORG=PS)
- //AS2 EXEC PGM=ABC
- // PEND
- //JOB1 JOB
- //STEP1 EXEC PROC=A
- //STEP2 EXEC PGM=JKL
- What would you add to STEP1 of JOB1 which calls the above procedure to change the dataset of AOUT in procedure A from a disk to a tape dataset?
- //AS1.AOUT DD UNIT=TAPE
- Carefully read the question and answer accordingly. Which restart command is used to disallows automated restart and checkpoint processing?
- RD=NC
- Carefully read the question and answer accordingly. Which code snippet is correct to have the below requirement?
- The output file should be included only for the records, which amount is greater than 10000 & sorted in ascending order based on the first 10 characters
- //STEP01 EXEC PGM=SORT //SORTIN DD DSN=MYID.TEST.INPUT,DISP=SHR //SORTOUT DD DSN=MYID.TEST.OUTPUT,DISP=(NEW,CATLG), // SPACE=(TRK,(1,1)), // DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,10,CH,A) INCLUDE COND=(40,8,ZD,GT,10000) /*
- Carefully read the question and answer accordingly. Block size for DASD files must be defined as ?
- BLKSIZE=0
- Carefully read the question and answer accordingly. What is the expansion of JCL and MVS?
- Job Control Language Multiple Virtual Storage
- Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
- //STEP010 EXEC PGM=PGM1, COND=(0,GT)
- // EXEC PROCNAME, COND.STEP010=(0,LE)
- Carefully read the question and answer accordingly. Which statement is used to provide PARM parameters for a DB2 program?
- SYSTSIN card
- Carefully read the question and answer accordingly. Comment statement need to start with
- //*
- Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
- ALTER command
- Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
- ALTER command
- Carefully read the question and answer accordingly. What condition should be applied so that the step executes even if the previous step terminates abnormally?
- COND=EVEN
- Carefully read the question and answer accordingly. Which of the following will delete all the generations of GDG USERID.GDG.BASE keeping the GDG base?
- //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=USERID.GDG.BASE,DISP=(SHR,DELETE,KEEP)
- Carefully read the question and answer accordingly. What condition should be applied so that the step executes even if the previous step terminates abnormally
- OND=EVEN
- Carefully read the question and answer accordingly. If we have a data set containing 10,000 fixed blocked records with LRECL=100. What is the space required for the above blksize ?
- Blocks needed = 10,000/(4096/100)
- Carefully read the question and answer accordingly. If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed
- 4094
- Carefully read the question and answer accordingly. Which "system abend" will occur when there is a insufficient space in disk?
- SB37 Abend
- Carefully read the question and answer accordingly. What are all the basic JES2 statements below?
- /*NOTIFY /*PRIORITY
- Carefully read the question and answer accordingly. Consider the following JCL.
- //MYJOB JOB(P,U202,SH1),'VIJAY N',CLASS=A
- //STEP1 EXEC PGM=PROGRAM1
- //STEPLIB DD DSNAME=LIB1.TEST1.LOADLIB,DISP-SHR
- //SYSOUT DD SYSOUT=A
- //FILEIN DD DSNAME=FILE1.TST1.DATA, DISP=SHR
- //STEP2 EXEC PGM=PROGRAM2
- //STEPLIB DD DSNAME=LIB1.TEST1.LOADLIB,DISP-SHR
- //SYSOUT DD SYSOUT=A
- //FILEIN DD DSNAME=FILE2.TST.DATA, DISP=SHR
- If the above job fails while executing STEP2, which of the following changed jobcards executes the job again, beginning in that ste
- //MYJOB JOB(P,U202,SH1),'VIJAY N',CLASS=A,RESTART=STEP2
- Carefully read the question and answer accordingly. Select the types of datasets provided by Virtual Storage Access Methods VSAM?
- All of the listed above
- Carefully read the question and answer accordingly. What is REPLICATE parameter in Define VSAM cluster ?
- REPLICATE specifies that VSAM should write each index record on a track as many times as it will fit.
- Carefully read the question and answer accordingly. Is it possible to REWRITE and DELETE a record in ESDS file ?
- REWRITE is possible but DELETE is not allowed
- Carefully read the question and answer accordingly. Control Interval contains
- Records free space
- Control interval definition field(CIDF)
- and Record definition field(RDF).
- Which component is an "optional" one in the listed above?
- Records free space
- Carefully read the question and answer accordingly. Which option specified to Delete a specific VSAM objects (SPACE, USERCATALOG, GDG) even though they may be non-empty.
- FORCE
- Carefully read the question and answer accordingly. What is the range of value is allowed to set the MAXCC in the job?
- 0 to 16
- Carefully read the question and answer accordingly. Is the Syntax Freespace(CA%,CI%) correct for defining the VSAM cluster ?
- F
- Carefully read the question and answer accordingly. What are the ranges of CISZ (Control Interval size) specified while creating a KSDS VSAM cluster ?
- The specified CISZ size must be 512, 1,024, 2,048, or 4,096.
- Carefully read the question and answer accordingly. What is the VSAM file status code to notify "End of file encountered"?
- 10
- Carefully read the question and answer accordingly. State True or False
- File Manager is a tool whic is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing and other file related operations
- T
- Carefully read the question and answer accordingly. We use CAPS ON/OFF to enable/disable capitals while typing in mainframe. State True or False.
- T
- Carefully read the question and answer accordingly. What should be the SCROLL on the right side of the panel set to so that cursor advances by one page when PF7 or PF8 are used?
- PAGE
- Carefully read the question and answer accordingly. In the following Export command, what does the TEMPORARY command do?
- //SYSIN DD *
- EXPORT MVS802.HRTITLE.TABLE -
- OUTFILE(BACKUP) -
- TEMPORARY
- It indicates the source cluster remains after the portable copy is created
- Carefully read the question and answer accordingly. If both the JOBCAT & STEPCAT statements are coded in a step, which will take precedence?
- STEPCAT
- Carefully read the question and answer accordingly. which of the following defines a NULL statement in a JCL?
- By keeping double slash alone //
- Carefully read the question and answer accordingly. Which of the following is not a function of SDSF ?
- Scheduling a Job
- Carefully read the question and answer accordingly. Programmer name is the Keyword parameter
- F
- Carefully read the question and answer accordingly. Consider the following Job card:
- //TSOCABX JOB (00010,1020983),'TSOCAB'
- Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
- ,CLASS=D
- Carefully read the question and answer accordingly. We can give In stream data in a PROC
- F
- Carefully read the question and answer accordingly. The invalid 'Normal Disposition'(Job ends with Normal Return code) value for DISP parameter
- NEW
- Carefully read the question and answer accordingly. Which of the following are valid positional parameters in a JCL statement?
- PGM=program-name
- Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
- //PRINTSS JOB CLASS=A,
- // MSGCLASS=X,MSGLEVEL=(1,1),
- // NOTIFY=&SYSUID
- How do you print the job stream as a sysout?
- TYPRUN=COPY
- Carefully read the question and answer accordingly. In a JCL, the DD statement has two types of parameters.
- Choose from the following.
- Positional, Keyword
- Carefully read the question and answer accordingly. The syntax is used to refer SORTOUT of STEP01 in SORTIN of STEP02.
- //STEP01 EXEC PGM=SORT
- ……
- //SORTOUT DD DSN=TEST.OUTFILE,
- // DISP=(NEW,CATLG,DELETE),DATACLAS=MB001,
- // UNIT=SYSDA,
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=8000)
- …..
- //STEP02 EXEC PGM=SORT
- ………
- //SORTIN DD DSN=____________
- //SORTOUT DD DSN=TEST.OUTFILE1,
- *.STEP01.SORTOUT
- Carefully read the question and answer accordingly. Consider the below JCL statements and choose its usage.
- //STEP10 EXEC PGM=IDCAMS
- //MYFILE DD DSN=<dataset name>, DISP=SHR
- //SYSIN DD *
- PRINT INFILE(MYFILE) CHAR COUNT(1)
- /*
- //
- Check for Empty dataset
- Carefully read the question and answer accordingly. Sample Code
- //T0DPFDSI JOB (00010,G000600,08E1),'Frank Smith',
- // CLASS=F,NOTIFY=T0DPFDS,
- Which parameter, added to the above Jobcard tool, requests the system to print only the JOB statement and JCL, JES, operator, and SMS messages?
- Correct Answer:
- // MSGLEVEL=(0,1)
- Carefully read the question and answer accordingly. State whether True of False
- Division Header or Section Header or Paragraph Header can lie in Area B.
- F
- Carefully read the question and answer accordingly. What parameter in job card decides the output queue
- MSGCLASS
- Carefully read the question and answer accordingly. ____________ is the identifier used to define the temporary dataset in a JCL.
- &&
- Carefully read the question and answer accordingly. Consider the below Space parameter.
- SPACE=(TRK,(1,1),CONTIG)
- If CONTIG is specified and contiguous space is not available, what will happen ?
- System terminates the job step
- Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
- MSGLEVEL = (1,1)
- Carefully read the question and answer accordingly. Which of the following statements are false with regard to PEND statement in JCL?
- PEND is mandatory for cataloged procedure.
- Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
- //PRINTSS JOB CLASS=A,
- // MSGCLASS=X,MSGLEVEL=(1,1),
- // NOTIFY=&SYSUID
- How do you print the job stream as a sysout?
- TYPRUN=COPY
- Carefully read the question and answer accordingly. Consider the following Job card:
- //TSOCABX JOB (00010,1020983),'TSOCAB'
- Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
- ,CLASS=D
- Carefully read the question and answer accordingly. Which DISP parameter to be coded for temporary datasets ?
- DISP=(NEW,PASS)
- Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library?
- By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
- Carefully read the question and answer accordingly. What parameter in job card decides the output queue
- MSGCLASS
- Carefully read the question and answer accordingly. ____________ is the identifier used to define the temporary dataset in a JCL.
- &&
- Carefully read the question and answer accordingly. Consider the below Space parameter.
- SPACE=(TRK,(1,1),CONTIG)
- If CONTIG is specified and contiguous space is not available, what will happen ?
- System terminates the job step
- Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
- MSGLEVEL = (1,1)
- Carefully read the question and answer accordingly. Which of the following statements are false with regard to PEND statement in JCL?
- PEND is mandatory for cataloged procedure.
- Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
- //PRINTSS JOB CLASS=A,
- // MSGCLASS=X,MSGLEVEL=(1,1),
- // NOTIFY=&SYSUID
- How do you print the job stream as a sysout?
- TYPRUN=COPY
- Carefully read the question and answer accordingly. Consider the following Job card:
- //TSOCABX JOB (00010,1020983),'TSOCAB'
- Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
- ,CLASS=D
- Carefully read the question and answer accordingly. Which DISP parameter to be coded for temporary datasets ?
- DISP=(NEW,PASS)
- Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library?
- By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
- Carefully read the question and answer accordingly. We can give In stream data in a PROC
- F
- Carefully read the question and answer accordingly. What is the purpose of the ‘DD KEYLEN’ parameter in a JCL?
- Specifies the length of the keys in the dataset
- Carefully read the question and answer accordingly. Which of the following equivalents are correct?
- DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
- Carefully read the question and answer accordingly. What should be coded in the job statement if the program needs 100K of central storage?
- //Jobid JOB Jobname,,REGION=100K,,
- Carefully read the question and answer accordingly. Sample Code
- //MYJOB JOB(P,U202,SH1),'FRANK SMITH',CLASS=A
- //STEP1 EXEC PGM=PROGRAM1,SYSTEM=LINK,DEPT=INV,TYPE=REC
- //FILEIN DD DSNAME=&SYSTEM..&DEPT..&TYPE,DISP=SHR
- //FILEOUT DD DSNAME=&SYSTEM..&DEPT..DATA,DISP=(NEW,CATLG,DELETE),
- // AVGREC=U,SPACE=(80,(100,20),RLSE),
- // DCB=(LRECL=80,RECFM=FB)
- Referring to the above coding, what is the effective dataset name for the data definition FILEOUT?
- LINK.INV.DATA
- Carefully read the question and answer accordingly. Choose the list of statements allowed in a Catalogued procedure.
- DD DUMMY
- Carefully read the question and answer accordingly. State whether true or false:
- INCLUDE statement and OMIT statement cannot be specified together in DFSORT
- T
- Carefully read the question and answer accordingly. How can the submitting user’s RACF authority be overridden in a job stream?
- Through the USER and PASSWORD parameter
- Carefully read the question and answer accordingly. Which code snippet is correct to have the below requirement?
- The output file should be included only for the records, which amount is greater than 10000 & sorted in ascending order based on the first 10 characters
- //STEP01 EXEC PGM=SORT //SORTIN DD DSN=MYID.TEST.INPUT,DISP=SHR //SORTOUT DD DSN=MYID.TEST.OUTPUT,DISP=(NEW,CATLG), // SPACE=(TRK,(1,1)), // DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,10,CH,A) INCLUDE COND=(40,8,ZD,GT,10000) /*
- Carefully read the question and answer accordingly. Which value in TIME parameter will allow the job or a step to use the maximum amount of time?
- TIME=NOLIMIT
- Carefully read the question and answer accordingly. Consider the following JCL statements with use of symbolic parameters.
- //RUN PROC TAPE=2400,NAME=SYS1
- ......... (more lines of JCL not affecting the lines below)
- //A DD UNIT=&TAPE-2,DSN=&NAME..P
- Which of the following is the correct manner in which the DD statement parameters will get substituted?
- //A DD UNIT=2400-2,DSN=SYS1.P
- Carefully read the question and answer accordingly. If you want to store two variables say, subscript and amount in a COMP and COMP-3 field, which one is preferred.
- For a subscript COMP is preferred and for the amount COMP-3 is preferred.
- Carefully read the question and answer accordingly. Consider the following scenario:
- A program PRG1 calls PRG2, using statement CALL 'PRG2' USING P1,P2.
- Both the programs are compiled and linked error free. Compiler option DYNAMIC is used.
- Afterwards some modification is done to PRG2.
- Which of the programs we need to compile to execute the main program?
- Only PRG2
- arefully read the question and answer accordingly. If you were passing a table via linkage
- Index is preferable
- Carefully read the question and answer accordingly. Which of the following is true with respect to ‘CALL ‘program’ USING BY CONTENT'?
- Parameters passed to called program are protected.
- Carefully read the question and answer accordingly. Which one will execute the fastest ?
- Working-Storage Section.
- 77 Field1 Pic S9(5) comp.
- 77 Field2 Pic S9(9) comp-3.
- 77 Field3 Pic S9(9) comp.
- 77 Field4 Pic S9(5) comp-3.
- Move Field1 to Field3
- Carefully read the question and answer accordingly. Consider 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
- Carefully read the question and answer accordingly. IF NOT AGE LESS THAN 30 AND 40
- GO TO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLE.
- If AGE is greater than or equal to 30 but less than 40.
- Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
- 01 WS1 PIC ZZ999.
- 01 WS2 PIC $ZZ999.
- 01 WS3 PIC 9999CR.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE 01234 TO WS1.
- MOVE 123 TO WS2.
- MOVE -1234 TO WS3.
- DISPLAY WS1.
- DISPLAY WS2.
- DISPLAY WS3.
- STOP RUN.
- consider the above code snippet and select the appropriate option.
- The SYSOUT will be as below b1234 $bb123 1234CR
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-AAA PIC 9(2) VALUE 10.
- 05 WS-BBB PIC 9(2) VALUE 20.
- 05 WS-CCC PIC 9(2) VALUE 30.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MULTIPLY WS-AAA BY WS-BBB GIVING WS-CCC.
- DISPLAY "WS-AAA :" WS-AAA.
- DISPLAY "WS-BBB :" WS-BBB.
- DISPLAY "WS-CCC :" WS-CCC.
- By considering the above code snippet select the appropriate output?
- WS-AAA :10 WS-BBB :20 WS-CCC :00
- Carefully read the question and answer accordingly. The following portion of procedure division
- MOVE 0 TO A, I.
- PARA-1.
- ADD 3 TO A.
- ADD 2 TO I.
- IF I < a=" ‘,">B MOVE A TO C
- ELSE MOVE B TO C.
- ADD C TO D.
- Indicate which one of the following does not support the above statements
- The larger of the values, A and B will be added to D.
- Carefully read the question and answer accordingly. Take a look at the following COBOL program. Assuming A, B, C, ... are COBOL instructions,
- in which order will they be executed?
- MAIN-PAR.
- PERFORM INIT-PAR
- Z
- PERFORM TERM-PAR
- Z
- STOP RUN
- .
- INIT-PAR.
- A
- B
- PERFORM READ-X
- .
- LOOP-PAR.
- E
- F
- .
- TERM-PAR.
- G
- H
- .
- READ-X.
- X.
- A B X Z G H Z
- Carefully read the question and answer accordingly. The Cobol compiler at the time of compilation indicates the error in the following Statement
- MULTIPLY 0.1 BY Y.
- Which of the following had given the correct clause?
- Y has the PIC CLAUSE ZZZ9.9
- Carefully read the question and answer accordingly. The following combination of edit characters can appear in the same PIC clause Except
- -$CR
- Carefully read the question and answer accordingly. A COBOL programmer wants to print out a number in his/her program. Which of the following
- variables is best suited for this purpose?
- +123.45
- (assuming that ‘.’ is the decimal point)
- PIC +9(3).99
- Carefully read the question and answer accordingly. Consider the below code
- 01 WS-COUNT PIC 9 VALUE 5.
- PROCEDURE DIVISION.
- PERFORM NEW-DIVISON THRU NEW-DIVISION-EXIT WS-COUNT TIMES
- STOP RUN.
- NEW-DIVISION.
- -----------------------------
- MOVE 10 TO WS-COUNT. -------- --------.
- NEW-DIVISION-EXIT.
- EXIT.
- How many times will NEW-DIVISION be performed
- Selected Option:
- 50 TIMES - 0.0
- Correct Answer:
- 5 TIMES
- Carefully read the question and answer accordingly. Consider the following piece of code
- 01 GROUP-ITEM
- 05 AMT-1 PIC 99V9 USAGE COMP VALUE 50
- 05 AMT-2 PIC 9(4)V99 USAGE COMP
- PROCEDURE DIVISION
- MOVE ZERO TO GROUP-ITEM.
- ADD 50 TO AMT-1.
- what will be the content of AMT-1?
- Correct Answer:
- 50
- Carefully read the question and answer accordingly. •What is the result of the following?
- MOVE 0 TO VAR1
- EVALUATE TRUE
- WHEN VAR1=1
- PERFORM PARA-1
- WHEN VAR1=2
- PERFORM PARA-2
- WHEN OTHER
- PERFORM PARA-3
- END-EVALUATE.
- Correct Answer:
- PARA-3 will be performed
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- WORKING-STORAGE SECTION.
- 01 WS-SUB1 PIC 99 VALUE 1.
- 01 WS-SUB2 PIC 99 VALUE 1.
- PROCEDURE DIVISION.
- MAIN-LOGIC.
- PERFORM PROCESS-PARA UNTIL WS-SUB1 > 8 AND WS-SUB2 > 10
- PROCESS-PARA.
- ADD 1 TO WS-SUB1.
- ADD 1 TO WS-SUB2.
- How many number of times PROCESS-PARA will be executed ?
- Correct Answer:
- 10
- Carefully read the question and answer accordingly. Determine the total number of bytes in the following
- 01 REC-1.
- 02 FIRST-GROUP.
- 03 A1 PIC X(4).
- 03 A2 PIC 99.
- 02 REDEFINES FIRST-GROUP.
- 03 A3 PIC 999.
- 03 A4 PIC 999.
- 02 THIRD-GROUP.
- 03 A5 OCCURS 5 TIMES PIC 99.
- Correct Answer:
- 16
- Carefully read the question and answer accordingly. Consider the following scenario.
- Program COB1 is present in the Load Library - TCHN666.PGM.LOAD. What happens when the following code snippet is executed.
- //*** JOB ***
- //STEP01 EXEC PGM=COB1
- //STEPLIB DD DSN=TCHN666.PGM.LOAD1,DISP=SHR
- //INFILE DD DSN=TCHN666.FILE.INP,DISP=SHR
- Correct Answer:
- S806
- Carefully read the question and answer accordingly. Following are the keywords used along with WHEN clause in EVALUATE
- Correct Answer:
- ALSO, THRU, OTHER
- Carefully read the question and answer accordingly. Which of the following is correct with respect to 01 level entries in data division?
- Correct Answer:
- 01 level entries can appear in any section of the Data Division
- Carefully read the question and answer accordingly. A COMP-1 field's internal representation is binary format.
- State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Constants can be initialized
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
- Correct Answer:
- MULTIPLY CORRESPONDING RECORD1 BY RECORD2
- Carefully read the question and answer accordingly. UNSTRING “ABC” INTO DATA-1.
- Indicate which one of the following is correct.
- Selected Option:
- The statement is correct and after the execution of the statement field-1 will contain the three characters “ABC” from the left-most position and the remaining positions of field-1 will remain unchanged - 0.0
- Correct Answer:
- There will be a syntax error, as the sending string must be identifier and not a literal.
- Carefully read the question and answer accordingly. Which tests are allowed with the following variable?
- 01 END-OF-FILE PIC X.
- 88 EOF VALUE 'N'.
- Selected Option:
- IF END-OF-FILE THEN … - 0.0
- Correct Answer:
- IF END-OF-FILE = 'Y' THEN …
- Carefully read the question and answer accordingly. If PIC clause for a data item is PPPP999 and the value moved to the data-item is 534 then the edited value taken is
- Selected Option:
- None of the above - 0.0
- Correct Answer:
- 0000534
- Carefully read the question and answer accordingly. How many bytes does PIC S9(10)V99 COMP-3 occupy?
- Correct Answer:
- 6
- Carefully read the question and answer accordingly. The INSPECT statement can be used to check whether the value in a data name is numeric
- Selected Option:
- T - 0.0
- Correct Answer:
- F
- Carefully read the question and answer accordingly. The sign is over punched with the numeric value stored in the last bite for which decimal fields ?
- Selected Option:
- Packed-decimal - 0.0
- Correct Answer:
- Zoned decimal
- Carefully read the question and answer accordingly. The number of bytes occupied by a S9(5) COMP-3 field is ____________.
- Correct Answer:
- 03
- Carefully read the question and answer accordingly. To describe a record the level numbers may be chosen from
- Correct Answer:
- 01 to 49
- Carefully read the question and answer accordingly. Value from 99.99 can be moved to 99V99
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following COBOL EVALUATE statements in syntactically NOT correct?
- EVALUATE A WHEN A=0 DISPLAY 'A = 0' WHEN A=5 DISPLAY 'A = 5' WHEN OTHER DISPLAY 'A IS NOT 0 NOR 5' END-EVALUATE
- Carefully read the question and answer accordingly. Result of DIVIDE A INTO B GIVING C
- Selected Option:
- remainder of B/A is stored in C - 0.0
- Correct Answer:
- C=B/A
- Carefully read the question and answer accordingly. ADD CORRESPONDING identifier-1 TO identifier-2
- Selected Option:
- All the above - 1.0
- Correct Answer:
- All the above
- Carefully read the question and answer accordingly. Scope terminator indicates
- Correct Answer:
- End of statement
- Carefully read the question and answer accordingly. COMPUTE A=B is valid
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following is not a valid type of Table space?
- Correct Answer
- Elementry Table Space
- Carefully read the question and answer accordingly. Which of the following statement is TRUE with regard to STOGROUP?
- Correct Answer:
- It is a storage group in DB2 having set of volumes on DASD
- Carefully read the question and answer accordingly. In a sub query, if DB2 evaluates the outer SELECT for every new row in the sub query, then the query is called _______________
- Correct Answer:
- Correlated sub query
- Carefully read the question and answer accordingly. Which statement about an index is NOT true?
- An index always has a balanced tree structure. - 0.0
- Correct Answer:
- The name of an index can be mentioned in a Select statement, to improve the performance of the quer
- Carefully read the question and answer accordingly. Which of the following is TRUE for the System Variable $date$?
- Correct Answer:
- Can be assigned to any field only during design time.
- Carefully read the question and answer accordingly. Which of the following is optional and do not have to be specified when creating a table?
- Correct Answer:
- NOT NULL constraint
- Carefully read the question and answer accordingly. Which of the following is a NOT a valid reason for defining a view on a table?
- Correct Answer:
- Produce an action as a result of a change to a table
- Carefully read the question and answer accordingly. Which of the following statements concerning locking on TABLESPACE level is correct?
- Correct Answer:
- When a TABLESPACE is S-locked by another user, a U-lock can be placed. However, an X-lock is not compatible and will have to wait until the S-lock is released.
- Carefully read the question and answer accordingly. Select the appropriate option with respect to Domain Integrity
- Correct Answer:
- This is the “Field-level integrity” which ensures that the structure of every field is sound
- Carefully read the question and answer accordingly. What does the DB2 precompiler do?
- Correct Answer:
- Expands the SQL.
- Carefully read the question and answer accordingly. Which of the following is NOT a step to be executed if the change scope is limited to SQL Statement and not the program code in an embedded SQL COBOL-DB2 program?
- Correct Answer:
- DCLGEN
- Carefully read the question and answer accordingly. Create a table with the below requirements
- Table name should be VOLVO_DETAIL with columns of
- Volvo number - character 4
- Volvo fare - integer
- Volvo type - character 2
- frequency - character 3 (check the frequency constraint in 60M, 30M)
- bus pass - character 2 (check the buss pass in 'AP' , 'NA')
- After creating the table create unique index and alter the table to have the Volvo number as the primary key
- Correct Answer:
- CREATE TABLE VOLVO_DETAIL ( VOLVO_NO CHAR(4) NOT NULL, VOLVO_FARE INTEGER NOT NULL, VOLVO_TYPE CHAR(2) NOT NULL, FREQUENCY CHAR(3) NOT NULL, CHECK(FREQUENCY IN('60M','30M')), BUS_PASS CHAR(2) NOT NULL, CHECK(BUS_PASS IN('AP','NA')) )IN DBTCHN05.TSCAT02; CREATE UNIQUE INDEX IDX_ID1 ON VOLVO_DETAIL(VOLVO_NO); ALTER TABLE VOLVO_DETAIL ADD PRIMARY KEY(VOLVO_NO);
- Carefully read the question and answer accordingly. INSERT INTO STAFF (SELECT MIN(EMPNO), EMPNAM FROM EMPTAB)
- By considering the above which query will give the result set?
- Correct Answer:
- Selects the employee number, employee name from employee table and inserts minimum EMPNO and EMPNAM records into STAFF table.
- Carefully read the question and answer accordingly. Given the statement:
- CREATE TABLE tableb ( col1 INTEGER NOT NULL,
- CONSTRAINT const1 CHECK (col1 in (100, 200, 300))
- Which of the following can be inserted into TABLEB?
- Correct Answer:
- 100
- Carefully read the question and answer accordingly. SELECT NAME
- ,LCASE(NAME) AS LNAME
- FROM STAFF
- WHERE ID < 100
- ID NAME
- --- --------
- 10 Nanda
- 50 Shahul
- 70 SUNDAR
- By considering the above which query will give the result set?
- Correct Answer:
- NAME LNAME ------- --------- Nanda nanda Shahul shahul SUNDAR sundar
- Carefully read the question and answer accordingly. Query 1: SELECT EMPNO, SALARY FROM EMPLOYEES
- WHERE SALARY BETWEEN 10000.00 AND 20000.00
- Query 2: SELECT EMPNO, SALARY FROM EMPLOYEES
- WHERE SALARY NOT BETWEEN 10000.00 AND 30000.00
- By considering the above two queries select the appropriate answer
- Correct Answer:
- Query 1: will return the result set with the salary is greater than or equal to 10,000 and lesser than or equal to 20,000 Query 2: will return the result set with the salary is less than 10,000 and greater than 30,000
- Carefully read the question and answer accordingly. Consider the below query.
- SELECT EMPNO, DEPNO FROM EMPTAB WHERE EMPNO < ANY (SELECT MAX(EMPNO) FROM EMPTAB)
- Correct Answer:
- If the EMPNO value is lesser than one of the values return by sub-query, then outer table row will be selected.
- Carefully read the question and answer accordingly. CREATE TABLE DSN81010.DEPT
- (DEPTNO CHAR(3) NOT NULL,
- DEPTNAME VARCHAR(36) NOT NULL,
- MGRNO CHAR(6),
- ADMRDEPT CHAR(3) NOT NULL,
- LOCATION CHAR(16),
- PRIMARY KEY (DEPTNO)
- )
- IN DSN8D10A.DSN8S10D;
- ALTER TABLE DSN81010.DEPT
- FOREIGN KEY RDD (ADMRDEPT)
- REFERENCES DSN81010.DEPT ON DELETE CASCADE;
- From the above query what is the purpose of defining ON DELETE CASCADE ?
- Selected Option:
- Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it. - 1.0
- Correct Answer:
- Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it.
- Carefully read the question and answer accordingly. Customers Table
- FirstName LastName Email DOB Phone
- John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222
- Steven Goldfish goldfish@fishhere.net 4/4/1974 323 455-4545
- Paula Brown pb@herowndomain.org 5/2/1978 416 323-3232
- James Smith jim@supergig.co.uk 2/1/1980 416 323-8888
- Please select the appropriate result set after executing the below queries
- Query 1: SELECT * FROM Customers WHERE LastName = 'Smith';
- Query 2: SELECT * FROM Customers WHERE LastName <> 'Smith';
- Query 3: SELECT * FROM Customers WHERE Phone LIKE '626%';
- Correct Answer:
- Query 1: FirstName LastName Email DOB Phone John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222 James Smith jim@supergig.co.uk 2/1/1980 416 323-8888 Query 2: Steven Goldfish goldfish@fishhere.net 4/4/1974 323 455-4545 Paula Brown pb@herowndomain.org 5/2/1978 416 323-3232 Query 3: John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222
- Carefully read the question and answer accordingly. What SQL structure allows you to specify the columns and values for an INSERT statement in a different order than the columns appear in the table?
- Correct Answer:
- The column list, as in "INSERT INTO employees (emp_id, last_name, first_name) VALUES (25, 'Narzeen','Kapil')"
- Carefully read the question and answer accordingly. Consider the below EMPTAB and its fields.
- ID ENAM DEP
- --- ------- -----
- 10 Sam Sales
- 20 null Manager
- 30 Albert Finance
- 40 Bill CEO
- SELECT COALESCE(EMPTAB.ENAM, '?') AS EMPNAME
- FROM EMPTAB
- ORDER BY ID;
- Correct Answer:
- EMPNAME ------------ Sam ? Albert Bill
- Carefully read the question and answer accordingly. State TRUE or FALSE
- A check constraint is a rule that specifies the values that are allowed in one or more columns of every
- row of a table.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. A new Column can be added to the table after it has been defined. State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which one best describes why cursor is used?
- Correct Answer:
- Cursors are used to access set-level data one row at a time.
- Carefully read the question and answer accordingly. When you issue a COMMIT statement in the program then the Cursor get closed.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following could be the reason if a CLOSE cursor statement is NOT successful?
- Correct Answer:
- The cursor is not in OPEN state
- Carefully read the question and answer accordingly. What is the picture clause of null indicator variable?
- Correct Answer:
- S9(4) COMP
- Carefully read the question and answer accordingly. Which of the following will make a column accept a NULL value in DB2?
- Correct Answer:
- Declare the columns WITH DEFAULT NULL explicitly during creation of table
- Declare the columns with no specific qualifying clause meant for NULL
- Carefully read the question and answer accordingly. How should a VARCHAR field be declared in the host variables structure in a COBOL-DB2 program?
- Correct Answer:
- A length field with S9(4) COMP and text field with the maximum length of the string expected in field
- Carefully read the question and answer accordingly. When you commit,the cursor is closed.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What does it mean if the null indicator has -1 ?
- Correct Answer:
- The field is null
- Carefully read the question and answer accordingly. Which of the following are valid SQL commands that can be used when declaring cursors?
- Correct Answer:
- ORDER BY
- Carefully read the question and answer accordingly. What is the sql error code will throw when a column is having NULL values, however NULL indicator is not coded to it ?
- Correct Answer:
- -305
- Carefully read the question and answer accordingly. SELECT CONCAT (('A' || 'B'), 'C')
- FROM STAFF
- WHERE ID = 10;
- By considering the above which query will give the result set?
- Answer ---------- ABC
- Carefully read the question and answer accordingly. Given the following table:
- TAB1
- COL1 COL2
- ????? ?????
- A 10
- B 20
- C 30
- D 40
- E 50
- And the following SQL statements:
- DECLARE c1 CURSOR WITH HOLD FOR
- SELECT * FROM tab1 ORDER BY col_1;
- OPEN c1;
- FETCH c1;
- FETCH c1;
- FETCH c1;
- COMMIT;
- FETCH c1;
- CLOSE c1;
- FETCH c1;
- Which of the following is the last value obtained for COL_2?
- Correct Answer:
- 40
- Carefully read the question and answer accordingly. State whether the statements are true
- Statement 1: SIN() Returns the trigonometric sine of a specified
- angle
- Statement 2: ABS() Returns a number's absolute value
- Statement 3: PI() Returns the value of PI
- Statement 4:SQRTS() Returns the square root of a specified number
- Selected Option:
- Statement 1 thru 3 are TRUE Statement 4 is FALSE - 1.0
- Carefully read the question and answer accordingly. Can this query be executed and is it useful (according to the table and column definitions)?
- SELECT CTITLE, CID
- FROM COURSES
- WHERE CID = '7820'
- Selected Option:
- Query can be executed and makes sense (according to the table and column definitions). - 1.0
- Carefully read the question and answer accordingly. Given the following table definition:
- SALE
- ?????????????????
- INVOICE_NO CHAR(20) NOT NULL
- SALE_DATE DATE
- SALE_PERSON CHAR(20)
- REGION CHAR(20)
- SALE INTEGER
- If the following SELECT statement is executed, which of the following describes the order of the rows in the result data set produced?
- SELECT * FROM sale
- Correct Answer:
- The rows are not sorted in any particular order.
- Carefully read the question and answer accordingly. Train_Tick
- Tr_id Tr_nm Start Ends Fare
- CO219 K2 Sarari Cochin Calcutta 100
- Co233 J3 Mellita Cochin Calcutta 120
- TN234 T3 Trichi Trichi Chennai 100
- TN267 T4 Madurai Chennai Madurai 150
- Select Start, Ends
- From Train_Tick
- Where Fare = 100
- Order by Start, Ends
- Union All
- Select Starts , Ends
- From Train_Tick
- Where Fare = 120
- Order by Start, Ends
- What will be the resultant of the query?
- Correct Answer:
- Start Ends Cochin Calcutta Trichi Chennai Cochin Calcutta
- Carefully read the question and answer accordingly. EMP table:
- empid
- emp_lst_nm
- emp_fst_nm
- emp_hire_dt
- emp_term_dt
- Select emp_lst_nm, emp_fst_nm, emp_id, emp_hire_dt
- from emp
- Which ORDER BY do you add to the above query to sort the result by most recent hire date, then sort by last name in alphabetical order within each date?
- Correct Answer:
- ORDER BY HIRE_DATE DESC, EMP_LAST_NAME
- Carefully read the question and answer accordingly. Select the appropriate query which will satisfy the below criteria
- The Usage count of the master server table should be updated for all the records which is having status is equal to GOOD and cpu usage is greater than 100 in server table
- Correct Answer:
- UPDATE MASTER_SERTB SET US_COUNT = 0 WHERE SNAME IN (SELECT SNAME FROM SERVER_TABLE WHERE STATUS = 'GOOD AND CPU_USAGE > 100);
- Carefully read the question and answer accordingly. Given the following two tables:
- TAB1
- COL_1 COL_2
- ????? ?????
- A 10
- B 12
- C 14
- TAB2
- COL _A COL_B
- ????? ?????
- A 21
- C 23
- D 25
- Assuming the following results are desired:
- COL _1 COL_2 COL_A COL_B
- ?????? ?????? ????? ?????
- A 10 A 21
- B 24 - 21
- C 14 C 21
- - - D 25
- Which of the following joins will produce the desired results?
- Correct Answer:
- SELECT * FROM tab1 FULL OUTER JOIN tab2 ON col_1 = col_a
- Carefully read the question and answer accordingly. Which one of the following do you use to place the value of today's date into the variable "program_date"?
- Selected Option:
- set program_date = current date - 1.0
- Carefully read the question and answer accordingly. Assuming table TABLE1 contains 100 rows, which of the following queries will return only half of the rows available?
- Selected Option:
- SELECT * FROM table1 MAXROWS 50 - 0.0
- Correct Answer:
- SELECT * FROM table1 FETCH FIRST 50 ROWS ONLY
- Carefully read the question and answer accordingly. Consider the following statement :
- SELECT PROJNO, PROJNAME
- FROM DSN8710.PROJ
- WHERE RESPEMP = (SELECT EMPNO
- FROM DSN8710.EMP
- WHERE FIRSTNME = 'CHRISTINE')
- Which of the following gives the appropriate categorization of the above statement?
- Correct Answer:
- NON-CORRELATED SUBQUERY
- Carefully read the question and answer accordingly. A table named DEPT has the following columns:
- DEPT_ID
- DEPT_NAME
- MANAGER
- AVG_SALARY
- Which of the following is the best way to prevent most users from viewing AVG_SALARY data?
- Correct Answer:
- Create a view that does not contain the AVG_SALARY column
- Carefully read the question and answer accordingly. BOOKS
- BOOK_ID BOOK_NAME SUB DATE_ISSUED
- 112 .NET concepts 2012-01-22
- 103 JAVA prilims null
- 104 IBM DB2 2012-02-24
- SELECT BOOK_NAME,
- COALESCE(DATE_ISSUED, '9999-12-31')
- FROM BOOKS
- WHERE BOOK_ID BETWEEN 101 AND 105;
- What is the result of the above query?
- Selected Option:
- JAVA prilims 9999-12-31 IBM DB2 2012-02-24 - 1.0
- Carefully read the question and answer accordingly. EMPNO EMAIL_ID
- ------ ---------------
- 000020 farookh_mgmail.com
- 000070 farhangmail.com
- 000090 ferozyahoo.com
- By considering the above which query will give the result set?
- Correct Answer:
- SELECT EMPNO, EMAIL_ID FROM EMPLOYEES WHERE EMAIL_ID LIKE 'f%' ESCAPE '@'
- arefully read the question and answer accordingly. SELECT NAME
- ,LCASE(NAME) AS LNAME
- FROM STAFF
- WHERE ID < 100
- ID NAME
- --- --------
- 10 Nanda
- 50 Shahul
- 70 SUNDAR
- By considering the above which query will give the result set?
- Carefully read the question and answer accordingly. Which of the following DB2 utility can be used to replace an existing data in a table?
- LOAD
- Carefully read the question and answer accordingly. CREATE TABLE DSN81010.DEPT
- (DEPTNO CHAR(3) NOT NULL,
- DEPTNAME VARCHAR(36) NOT NULL,
- MGRNO CHAR(6),
- EMP_TYPE CHAR(8) DEFAULT 'NEW'
- CHECK (EMP_TYPE IN ('TEMP', 'FULLTIME', 'CONTRACT')),
- PRIMARY KEY (DEPTNO)
- )
- IN DSN8D10A.DSN8S10D;
- While inserting into DEPT table, what will happen to the EMP_TYPE column, when no values provided for that field ?
- Correct Answer:
- It will throw sql error code -545.
- Carefully read the question and answer accordingly. EXEC SQL DECLARE C1 CURSOR FOR
- SELECT *
- FROM EMPLOYEE
- FOR UPDATE OF JOB_DET;
- EXEC SQL OPEN C1;
- EXEC SQL FETCH C1 INTO ... ;
- Based on the sample code above, how do you change the JOB_DET of a certain employee to a new job?
- Correct Answer:
- EXEC SQL UPDATE EMPLOYEE SET JOB_DET = :newjob WHERE CURRENT OF C1;
- Carefully read the question and answer accordingly. Which of the following is true with regard to declaring a Primary key as VARCHAR in a DB2 table?
- Correct Answer:
- Primary key can be a varchar which will be handled in similar way as other data types
- Carefully read the question and answer accordingly. What SQL structure allows you to specify the columns and values for an INSERT statement in a different order than the columns appear in the table?
- Selected Option:
- The column list, as in "INSERT INTO employees (emp_id, last_name, first_name) VALUES (25, 'Narzeen','Kapil')" - 1.0
- Carefully read the question and answer accordingly. There is an update in the program as below to have every three records, there is a commit as a commit frequency.
- While updating the JN number as J6 the program got abended. How many rows got updated as per the commit frequency. Select the appropriate answer
- SN PN JN QTY
- Row 1 S1 P1 J1 200
- Row 2 S1 P1 J4 700
- Row 3 S2 P3 J1 400
- Row 4 S2 P3 J2 200
- Row 5 S2 P3 J3 200
- Row 6 S2 P3 J4 500
- Row 7 S2 P3 J5 600
- Row 8 S2 P3 J6 400
- Row 9 S2 P3 J7 800
- Selected Option:
- Till Row 6 all the records get updated - 1.0
- Carefully read the question and answer accordingly. When granting and revoking authorizations, which of the following aspects will NOT be taken into consideration by DB2?
- Correct Answer:
- Whether the GRANTEE is an existing user ID for RACF.
- Carefully read the question and answer accordingly. Which of the following statements is NOT true about View?
- \Correct Answer:
- You can create an index for a view
- Carefully read the question and answer accordingly. Which of the following is TRUE for the System Variable $date$?
- Selected Option:
- Can be assigned to any variable or field during run time. - 0.0
- Correct Answer:
- Can be assigned to any field only during design time.
- Carefully read the question and answer accordingly. Which of the following is optional and do not have to be specified when creating a table?
- Correct Answer:
- Default constraint
- Carefully read the question and answer accordingly. Select the appropriate option with respect to Domain Integrity
- Correct Answer:
- This is the “Field-level integrity” which ensures that the structure of every field is sound
- Carefully read the question and answer accordingly. Select the appropriate answer with respect to the goal of Normalization
- Correct Answer:
- All of the listed option
- Carefully read the question and answer accordingly. In a sub query, if DB2 evaluates the outer SELECT for every new row in the sub query, then the query is called _______________
- Correct Answer:
- Correlated sub query
- Carefully read the question and answer accordingly. what is the maximum number of tables that can be joined in DB2 V8 ?
- Correct Answer:
- 255
- Carefully read the question and answer accordingly. DROP command is used to remove an object in the current server. Choose the option which can be removed using DROP command?
- Correct Answer:
- All of the listed option
- Carefully read the question and answer accordingly. Which of the following statements concerning locking on TABLESPACE level is correct?
- Correct Answer:
- When a TABLESPACE is S-locked by another user, a U-lock can be placed. However, an X-lock is not compatible and will have to wait until the S-lock is released.
- Carefully read the question and answer accordingly. Which of the following DB2 objects is NOT considered executable using SQL?
- Correct Answer:
- Trigger
- Carefully read the question and answer accordingly. State TRUE or False
- Primary key can only be set in CREATE TABLE command.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. A new Column can be added to the table after it has been defined. State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Select the list of aggregate functions which will be used to calculate and manipulate data?
- Select 3
- Correct Answer:
- AVG() SUM() MAX()
- Carefully read the question and answer accordingly. what is the name of the default db2 catalog database?
- Correct Answer:
- DSNDB06
- Carefully read the question and answer accordingly. How many clustering indexes can be defined for a table?
- Correct Answer:
- One
- Carefully read the question and answer accordingly. In SQL, the CREATE TABLESPACE is used
- Correct Answer:
- to create a place in the database for storage of scheme objects, rollback segments, and naming the data files to comprise the tablespace.
- Carefully read the question and answer accordingly. Which of the following is not a valid type of Table space?
- Correct Answer:
- Elementry Table Space
- Carefully read the question and answer accordingly. If we need to combine the results of two tables and fetch all rows from them while eliminating duplicates, which of the following needs to be used?
- Correct Answer:
- Union
- Carefully read the question and answer accordingly. When granting and revoking authorizations, which of the following aspects will NOT be taken into consideration by DB2?
- Correct Answer:
- Whether the GRANTEE is an existing user ID for RACF.
- Carefully read the question and answer accordingly. What parameter in job card decides the output queue
- Correct Answer:
- MSGCLASS
- Carefully read the question and answer accordingly. ____________ is the identifier used to define the temporary dataset in a JCL.
- Correct Answer:
- &&
- Carefully read the question and answer accordingly. Consider the following embedded SQL statement:
- SELECT PFNAME
- INTO :PFNAME:IND
- FROM TUTPERSONS
- WHERE PLNAME = :PLNAME
- In which order should the following program variables be evaluated by the part of the program
- just after this SQL statement?
- Correct Answer:
- SQLCODE, IND, PFNAME
- Carefully read the question and answer accordingly. Consider the below query.
- SELECT EMPNO, DEPNO FROM EMPTAB WHERE EMPNO < ANY (SELECT MAX(EMPNO) FROM EMPTAB)
- If the EMPNO value is lesser than one of the values return by sub-query, then outer table row will be selected.
- Carefully read the question and answer accordingly. State the below statements are true of false
- a) Left outer join - keeps the unmatched rows from the outer table
- b) right outer join - keeps the unmatched rows from the inner table
- c) full outer join - keeps the unmatched rows from both the tables
- a,b,c are TRUE
- Carefully read the question and answer accordingly. Query 1: SELECT EMPNO, SALARY FROM EMPLOYEES
- WHERE SALARY BETWEEN 10000.00 AND 20000.00
- Query 2: SELECT EMPNO, SALARY FROM EMPLOYEES
- WHERE SALARY NOT BETWEEN 10000.00 AND 30000.00
- By considering the above two queries select the appropriate answer
- Selected Option:
- The query will create a VIEW named VW_TBL upon the TB_EMP table that contains only those rows with a employee name starting with the letters SHA - 1.0
- Carefully read the question and answer accordingly. Select the query which satisfies the below scenario:
- Select the department number and average departmental salary for all departments in the table EMP table. Arrange the result table in ascending order by average departmental salary.
- Selected Option:
- SELECT WORKDEPT, AVG(SALARY) FROM EMP_TBL GROUP BY WORKDEPT ORDER BY 2; - 1.0
- Carefully read the question and answer accordingly. Consider a table EMPTABLE which has columns EMPID, EMPNAME, QUALIFICATION
- Only the columns EMPID and EMPNAME are specified as NOT NULL
- The following SQL statement is executed:
- INSERT INTO EMPTABLE(EMPID, EMPNAME, QUALIFICATION)
- VALUES(2001, 'RAGHUVIR')
- Which of the following is valid for the above?
- Correct Answer:
- 2001 is inserted into EMPID RAGHUVIR is inserted into EMPNAME NULL is inserted into QUALIFICATION
- Carefully read the question and answer accordingly. Consider the following SQL statement, executed by user TU00001:
- CREATE VIEW BELGIAN_COMPANIES
- AS
- SELECT *
- FROM COMPANIES
- WHERE COCOUNTRY = 'BE'
- User TU00044 has INSERT authority on this view, what would happen if he tries to insert a row
- into this view, where the COCOUNTRY field of that line contains a value of ‘GB’?
- Correct Answer:
- The row will be inserted in the table TU00001.COMPANIES, but it will never show up in a SELECT on this view.
- Carefully read the question and answer accordingly. CREATE TABLE SAMPLE_TBL
- (
- CUSTID INTEGER NOT NULL,
- FIRSTNAME CHAR(06) NOT NULL,
- LASTNAME CHAR(10) NOT NULL
- )IN DB.TS2;
- CREATE UNIQUE INDEX IND99SD ON SAMPLE_TBL(CUSTID);
- INSERT INTO SAMPLE_TBL VALUES(100656001,'ABDUL ','SHIHAB');
- INSERT INTO SAMPLE_TBL VALUES(100656002,'MARIA ','JOSEPH');
- INSERT INTO SAMPLE_TBL VALUES(100656003,'ASHA ','ANTONY');
- INSERT INTO SAMPLE_TBL VALUES(100656004,'MARY ','ANN');
- SELECT LOWER(FIRSTNAME) FROM SAMPLE_TBL;
- What will be the outcome after executing the above query?
- Selected Option:
- abdul maria asha mary - 1.0
- Correct Answer:
- abdul maria asha mary
- Carefully read the question and answer accordingly. Select the query which will satisfy the below scenario
- The table STUD_TBL should have the fields
- STUD_ID integer Primary key
- STUD_TYPE Char-3 Accepted Values (BA1-batch 1,BA2-batch 2,BA3-batch 3)
- MARKS Decimal (4,2) null
- GRADE Char-1 Not null
- Selected Option:
- CREATE TABLE STUD_TBL ( STUD_ID INTEGER PRIMARY KEY NOT NULL, STUD_TYPE CHAR(3) NOT NULL, CHECK(STUD_TYPE IN('BA1','BA2','BA3')), MARKS DECIMAL(4,2) NULL, GRADE CHAR(1) NOT NULL )IN DB.TS ; - 1.0
- Carefully read the question and answer accordingly. Given the two following tables:
- Tablename: NAMES
- Name Number
- Wayne Gretzky 99
- Jaromir Jagr 68
- Bobby Orr 4
- Bobby Hull 23
- Brett Hull 16
- Mario Lemieux 66
- Steve Yzerman 19
- Claude Lemieux 19
- Mark Messier 11
- Mats Sundin 13
- Tablename: POINTS
- Name Points
- Wayne Gretzky 244
- Jaromir Jagr 168
- Bobby Orr 129
- Bobby Hull 93
- Brett Hull 121
- Mario Lemieux 189
- Joe Sakic 94
- Which of the following statements will display the player's name, number and points for
- all players with an entry in both tables?
- Selected Option:
- SELECT names.name, names.number, points.points FROM names INNER JOIN points ON names.name=points.name - 1.0
- Carefully read the question and answer accordingly. EMPNO LASTNAME
- ------ ---------------
- 000010 HAAS
- 000020 THOMPSON
- 000060 STERN
- 000070 PULASKI
- 000090 HENDERSON
- 000100 SPENSER
- By considering the above, which query will give the above result set?
- Selected Option:
- SELECT EMPNO, LASTNAME FROM EMPLOYEES WHERE LASTNAME LIKE '%S%' - 1.0
- Carefully read the question and answer accordingly. CREATE TABLE CUST_BANK
- (
- CUSTID INTEGER NOT NULL,
- FIRSTNAME CHAR(06) NOT NULL,
- LASTNAME CHAR(10) NOT NULL
- )IN DB.TS2;
- CREATE UNIQUE INDEX IN3IDX ON CUST_BANK(CUSTID);
- INSERT INTO CUST_BANK VALUES(100656003,'ABDUL ','.KALAM');
- SELECT FIRSTNAME||''||LASTNAME FROM CUST_BANK;
- By executing the above query what will be the output?
- Selected Option:
- ABDUL.KALAM - 0.0
- Correct Answer:
- ABDUL .KALAM
- Carefully read the question and answer accordingly.
- The PARTS table The PRODUCTS table
- PART PROD# SUPPLIER PROD# PRODUCT PRICE
- ======= ===== ============ ===== =========== =====
- WIRE 10 ACWF 505 SCREWDRIVER 3.70
- OIL 160 WESTERN_CHEM 30 RELAY 7.55
- MAGNETS 10 BATEMAN 205 SAW 18.90
- PLASTIC 30 PLASTIK_CORP 10 GENERATOR 45.75
- BLADES 205 ACE_STEEL
- by considering the above table, If we want to get the below result set, which query is the appropriate one?
- PART SUPPLIER PROD# PRODUCT
- ======= ============ ===== ==========
- MAGNETS BATEMAN 10 GENERATOR
- PLASTIC PLASTIK_CORP 30 RELAY
- Correct Answer:
- SELECT PART, SUPPLIER, PARTS.PROD#, PRODUCT FROM PARTS INNER JOIN PRODUCTS ON PARTS.PROD# = PRODUCTS.PROD# AND SUPPLIER NOT LIKE 'A%';
- Carefully read the question and answer accordingly. Given the following statement:
- CREATE TABLE t1
- col1 SMALLINT NOT NULL PRIMARY KEY,
- col2 VARCHAR(200) NOT NULL WITH DEFAULT NONE,
- col3 DECIMAL(5,2) CHECK (col3 >= 100.00),
- col4 DATE NOT NULL WITH DEFAULT)
- Which of the following definitions will cause the CREATE TABLE statement to fail?
- Correct Answer:
- COL2
- Carefully read the question and answer accordingly. There are two tables called DEPARTMENTS which contains all department details and EMPLOYEES table which contains all the salary details.
- Select the query which will return the result set contains the department name for every department whose average salary for individuals working in that department is greater than 50,000, along with the actual average salary for each department.
- Correct Answer:
- SELECT DEPTNAME, AVG(SALARY) AS AVG_SALARY FROM DEPARTMENT D, EMPLOYEES E WHERE E.WORKDEPT = D.DEPTNO GROUP BY DEPTNAME HAVING AVG(SALARY) > 50000.00
- Carefully read the question and answer accordingly. TOUR GUIDE LANGUAGE TOUR_DATE START_TIME END_TIME GROUP_SIZE AVAILABILITY
- Tower of London Paulo Spanish 30/08/2003 09:45:00 11:45:00 20 4
- HMS Discovery Carol German 30/08/2003 10:30:00 12:30:00 16 0
- Saint Paul's Albert French 30/08/2003 10:30:00 12:15:00 16 14
- Tower of London Heidi French 30/08/2003 10:45:00 2:45:00 20 0
- Covent Garden Heidi German 30/08/2003 13:30:00 16:30:00 24 19
- By considering the above table select the proper query to satisfy the below criteria
- Select tours which have the largest group sizes
- Selected Option:
- SELECT * FROM TOUR_GROUP WHERE GROUP_SIZE = (SELECT MAX(GROUP_SIZE) FROM TOUR_GROUP) ORDER BY TOUR, TOUR_DATE, START_TIME; - 1.0
- Carefully read the question and answer accordingly. CREATE TABLE STUD_DETAIL(
- STUD_NAME CHAR(10) NOT NULL,
- STUD_GRADE CHAR(1),
- STUD_DEPT CHAR(3) NOT NULL
- CHECK(STUD_DEPT IN('BCA','COM','SCI','BA')),
- PRIMARY KEY(STUD_NAME,STUD_DEPT))
- IN DBTCHN01.TSCEP02;
- CREATE UNIQUE INDEX IX111G ON STUD_DETAIL(STUD_NAME,STUD_DEPT);
- INSERT INTO STUD_DETAIL VALUES('JOSEPH','A','BCA');
- INSERT INTO STUD_DETAIL VALUES('ANTONY','B','BCA');
- INSERT INTO STUD_DETAIL VALUES('KAREEN','A','SCI');
- INSERT INTO STUD_DETAIL VALUES('LEESA','C','BA');
- INSERT INTO STUD_DETAIL VALUES('MARIA','D','COM');
- By considering the above table declaration what will happen if we execute the below two queries
- query 1: SELECT * FROM STUD_DETAIL WHERE STUD_NAME ='JOSEPH' AND STUD_NAME ='ANTONY';
- query 2:SELECT * FROM STUD_DETAIL WHERE STUD_NAME ='JOSEPH' OR STUD_NAME ='ANTONY';
- Selected Option:
- Correct Answer:
- Query 1 will not return any output Query 2 will return the below values ANTONY B BCA JOSEPH A BCA
- Carefully read the question and answer accordingly. Consider the following statement:
- SELECT NAME, EMPNO, DEPT, SALARY
- FROM EMP
- WHERE AVG(SALARY) > 100
- Which of the following is applicable for the above?
- Correct Answer:
- Incorrect use of Built-in function or grouped column.
- Carefully read the question and answer accordingly. Given the following table definition:
- SALE
- ?????????????????
- INVOICE_NO CHAR(20) NOT NULL
- SALE_DATE DATE
- SALE_PERSON CHAR(20)
- REGION CHAR(20)
- SALE INTEGER
- If the following SELECT statement is executed, which of the following describes the order of the rows in the result data set produced?
- SELECT * FROM sale
- Correct Answer:
- The rows are not sorted in any particular order.
- Carefully read the question and answer accordingly. Select the query which satisfies the below scenario:
- Select the department number and average departmental salary for all departments in the table EMP table. Arrange the result table in ascending order by average departmental salary.
- Selected Option:
- Correct Answer:
- SELECT WORKDEPT, AVG(SALARY) FROM EMP_TBL GROUP BY WORKDEPT ORDER BY 2;
- Carefully read the question and answer accordingly. If a table has a column "name" (declared to have nulls) and there are 10rows in the table of which 3 have a null value in the name column, what will select count(*) and select count(distinct name) return resp.?
- Selected Option:
- 10,7 - 1.0
- Carefully read the question and answer accordingly. SELECT NAME
- ,LCASE(NAME) AS LNAME
- FROM STAFF
- WHERE ID < 100
- ID NAME
- --- --------
- 10 Nanda
- 50 Shahul
- 70 SUNDAR
- By considering the above which query will give the result set?
- Selected Option:
- NAME LNAME ------- --------- Nanda nanda Shahul shahul SUNDAR sundar
- Carefully read the question and answer accordingly. Given the statement:
- CREATE TABLE tableb ( col1 INTEGER NOT NULL,
- CONSTRAINT const1 CHECK (col1 in (100, 200, 300))
- Which of the following can be inserted into TABLEB?
- Selected Option:
- 100
- Carefully read the question and answer accordingly. 1 SELECT *
- 2 FROM classes c, students s
- 3 WHERE c.st_id = s.id
- 4 AND LEN(s.name) > c.st_id
- 5 ORDER BY c.*
- Referring to the above sample code, which one of the following lines returns an error?
- Selected Option:
- Line 4 -
- Carefully read the question and answer accordingly. State the below statements are true of false
- a) Left outer join - keeps the unmatched rows from the outer table
- b) right outer join - keeps the unmatched rows from the inner table
- c) full outer join - keeps the unmatched rows from both the tables
- Correct Answer:
- a,b,c are TRUE
- Carefully read the question and answer accordingly. Consider the following table:
- EMPLOYEES
- EMPNO EMPNAME
- --------- ------------------
- 100 GEORGE
- 120 JAYANTH
- 115 TONY
- 112 PRIYANKA
- 125 SANJAY
- 130 KAREENA
- 140 KAREENA
- The query SELECT DISTINCT EMPNAME FROM EMPLOYEES ORDER BY EMPNO is executed on the above table.
- What will be the correct result set retrieved by the above query?
- Selected Option:
- GEORGE PRIYANKA TONY JAYANTH SANJAY KAREENA -
- Carefully read the question and answer accordingly. Can this query be executed and is it useful (according to the table and column definitions)?
- SELECT CTITLE, CID
- FROM COURSES
- WHERE CID = '7820'
- Selected Option:
- Correct Answer:
- Query can be executed and makes sense (according to the table and column definitions)
- Carefully read the question and answer accordingly. Which of the following tools can be used to automate table reorganization operations?
- Selected Option:
- Task Center - 1.0
- Carefully read the question and answer accordingly. Which of the following is TRUE for the System Variable $date$?
- Correct Answer:
- Can be assigned to any field only during design time.
- Carefully read the question and answer accordingly. Please select the appropriate option after read the below data base related statements.
- Statement 1: Data is actually stored in a structure known as a table space
- Statement 2: Each table space correlates to one or more individual physical VSAM datasets in the DASD volumes of Storage Group.
- Statement 3: Each table space contains only one table
- Selected Option:
- Statement 1 & 2 are TRUE Statement 3 is FALSE - 1.0
- Carefully read the question and answer accordingly. Select the appropriate option with respect to SPUFI
- Correct Answer:
- It is the DB2 interactive menu-driven tool used by developers to create database objects
- Carefully read the question and answer accordingly. A view is created with columns from three tables.
- Which of the following is True with respect to updating the view?
- Selected Option:
- Can update any column referred in the view - 0.0
- Correct Answer:
- Cannot update any column referred in the view
- Carefully read the question and answer accordingly. In a sub query, if DB2 evaluates the outer SELECT for every new row in the sub query, then the query is called _______________
- Selected Option:
- Correlated sub query
- Carefully read the question and answer accordingly. Which of the following statements concerning locking on TABLESPACE level is correct?
- Correct Answer:
- When a TABLESPACE is S-locked by another user, a U-lock can be placed. However, an X-lock is not compatible and will have to wait until the S-lock is released.
- Carefully read the question and answer accordingly. Which of the following are NOT stored in the system catalog tables?:
- Correct Answer:
- SQL statements used to create tables
- Carefully read the question and answer accordingly. Which of the following DB2 objects is NOT considered executable using SQL?
- Selected Option:
- Trigger
- Carefully read the question and answer accordingly. DROP command is used to remove an object in the current server. Choose the option which can be removed using DROP command?
- Selected Option:
- All of the listed option
- Carefully read the question and answer accordingly. Which of the following is used to indicate a column will not accept NULL values and can be referenced in another table's foreign key specification?
- Selected Option:
- Unique constraint -
- Carefully read the question and answer accordingly. Which of the following is NOT a difference between a unique index and a primary key?
- Correct Answer:
- Unique indexes can be defined over one or more columns; primary keys can only be defined on a single column.
- Carefully read the question and answer accordingly. Which of the following are NOT stored in the system catalog tables?:
- Correct Answer:
- SQL statements used to create tables
- Carefully read the question and answer accordingly. A new Column can be added to the table after it has been defined. State True or False.
- Selected Option:
- T
- Carefully read the question and answer accordingly. Consider the below statements and state true or false
- Statement 1: Access path is the path used to get to the data specified in the SQL
- Statement 2: An object is anything that is managed by DB2 (i.e., alias, column, stogroup, database, table-space, table, view, index, synonym)
- Statement 3: A base table is a real table - a table that physically not exists in that there are physical stored records
- Selected Option:
- Statement 1 & 2 are TRUE Statement 3 is FALSE - 1.0
- Correct Answer:
- Statement 1 & 2 are TRUE Statement 3 is FALSE
- Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
- Selected Option:
- T
- Carefully read the question and answer accordingly. Which of the following can NOT be used to restrict specific values from being inserted into a column in a particular table?
- Selected Option:
- Default Constraint
- Carefully read the question and answer accordingly. List down all the valid types of relationships (Cardinality)
- Selected Option:
- One-to-One One-to-Many Many-to-One Many-to-Many -
- Carefully read the question and answer accordingly. What is true for group by,order by clause?
- Correct Answer:
- Selected columns must be column functions or in the group by clause.
- Carefully read the question and answer accordingly. Select the appropriate answer with respect to the goal of Normalization
- Selected Option:
- All of the listed option -
- Carefully read the question and answer accordingly. Assuming the database has no distinct types, which of the following is an invalid data
- type on CREATE TABLE?
- Selected Option:
- CLOB - 0.0
- Correct Answer:
- DATETIME
- Carefully read the question and answer accordingly. In a table which contains columns A,B,C,D,E and F, if the columns A and E are declared as primary keys, what will be the result?
- Correct Answer:
- The key declaration works fine.
- Carefully read the question and answer accordingly. List down the valid types of Integrity?
- Correct Answer:
- Entity Integrity Referential Integrity Domain Integrity
- Carefully read the question and answer accordingly. Given the requirements to store customer names, billing addresses, and telephone numbers, which of the following would be the best way to define the telephone number column for a table if all customers were located in the same country?
- Selected Option:
- PHONE CHAR(15)
- Carefully read the question and answer accordingly. Which operator is used in correlated sub queries?
- Selected Option:
- EXISTS
- Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Please select the appropriate option after read the below data base related statements.
- Statement 1: Data is actually stored in a structure known as a table space
- Statement 2: Each table space correlates to one or more individual physical VSAM datasets in the DASD volumes of Storage Group.
- Statement 3: Each table space contains only one table
- Selected Option:
- Statement 1 & 2 are TRUE Statement 3 is FALSE - 1.0
- Correct Answer:
- Statement 1 & 2 are TRUE Statement 3 is FALSE
- Carefully read the question and answer accordingly. The following portion of procedure division
- MOVE 0 TO A, I.
- PARA-1.
- ADD 3 TO A.
- ADD 2 TO I.
- IF I < a=" ‘,">B MOVE A TO C
- ELSE MOVE B TO C.
- ADD C TO D.
- Indicate which one of the following does not support the above statements
- Selected Option:
- Correct Answer:
- The larger of the values, A and B will be added to D.
- Carefully read the question and answer accordingly. Select the allowable level numbers of Elementary data items in COBOL program.
- Selected Option:
- 01 TO 49 , 77 - 1.0
- Carefully read the question and answer accordingly. 05 VAR-A PIC 9(9).99.
- 05 VAR-B PIC X(10).
- PROCEDURE DIVISION.
- MOVE 12345.99 TO VAR-A.
- MOVE 12345.99 TO VAR-B.
- DISPLAY VAR-A.
- DISPLAY VAR-B.
- Output will be
- Selected Option:
- 000012345.99 and 12345.99 - 0.0
- Correct Answer:
- Compilation Error
- Carefully read the question and answer accordingly. What are all the below intrinsic date functions are valid?
- Correct Answer:
- None of the listed option
- Carefully read the question and answer accordingly. 01 Item-1 Pic x(30) Value "Hello World!".
- 01 Item-2 Pic x(30).
- . . .
- Display Item-1
- Display Function Upper-case(Item-1)
- Display Function Lower-case(Item-1)
- Move Function Upper-case(Item-1) to Item-2
- Display Item-2
- Select the appropriate outputs after execution of above code snippet
- Correct Answer:
- Hello World! HELLO WORLD! hello world! HELLO WORLD!
- Carefully read the question and answer accordingly. Which of the following variable declarations are syntactically correct?
- (1) 01 V-1 PIC SX(4).
- (2) 01 V-2 PIC S9(4).
- (3) 01 V-1 PIC V99.
- (4) 01 V-1 PIC P99.
- (5) 01 V-1 PIC 9(4)S.
- (6) 01 V 1 PIC X(4).
- Correct Answer:
- 2, 3 and 4
- arefully read the question and answer accordingly. Consider the following COBOL data definition:
- 01 WS-TRANSACTION-RECORD.
- 05 WS-STATUS PIC X.
- 88 VALID-STATUS VALUES "A", "B", "C", "D".
- 88 MARRIED VALUE "A".
- 88 SINGLE VALUE "B".
- 88 SEPARATED VALUE "C".
- 88 DIVORCED VALUE "D".
- Four of the five IF conditions below are equivalent. Identify the odd one.
- Selected Option:
- IF MARRIED AND SINGLE AND SEPARATED AND DIVORCED - 1.0
- Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
- ELSE MOVE A TO B.
- Which of the following describes the above sentence correctly
- Correct Answer:
- IF A NOT = 1 AND 2 AND 3 MOVE A TO B
- Carefully read the question and answer accordingly. SORT REPORT-FILE
- ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
- USING INPUT-FILE GIVING OUTPUT-FILE.
- Which one of the following is false.
- Selected Option:
- The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement. - 1.0
- Carefully read the question and answer accordingly. Consider the below code snippet.
- 01 WS-ITEM.
- 05 WS-TOTAL PIC 9(5) VALUE SPACES.
- 05 WS-NET PIC 9(10) VALUE ZEROES.
- 05 WS-GROSS PIC 9(20) VALUE ZEROES.
- ..
- COMPUTE WS-GROSS = (WS-NET - WS-TOTAL)
- Selected Option:
- The code is syntatically incorrect. - 1.0
- Carefully read the question and answer accordingly. The Cobol compiler at the time of compilation indicates the error in the following Statement
- MULTIPLY 0.1 BY Y.
- Which of the following had given the correct clause?
- Correct Answer:
- Y has the PIC CLAUSE ZZZ9.9
- Carefully read the question and answer accordingly. The COBOL program contains the following IF statement
- IF VAR1 NOT = 'L' OR 'M' OR 'N'
- PERFORM PARA-ERROR
- As a result of this statement, When will PARA-ERROR will be executed.
- Correct Answer:
- If VAR1 was defined as a condition-name with values 'L', 'M' or 'N'
- Carefully read the question and answer accordingly. The picture of SAMPLE IS
- 02 SAMPLE PIC 999V99
- What will be the content of raffles when the following data is named to it?
- 7892^23
- Selected Option:
- 89223 - 0.0
- Correct Answer:
- 89223
- Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which statement is TRUE with refer to VIEW of the table?
- Correct Answer:
- A VIEW never stores data.
- Carefully read the question and answer accordingly. In tables related through referential integrity, the table with primary key is assumed to be a child table and the other table with the same keys as foreign key is a parent table.
- State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. How to identify the LIMIT size of an Generation Data Group or GDG? (Assume the GDG name as GDG.ONE)
- Correct Answer:
- //STEP4 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=GDG.ONE,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * LISTCAT /*
- Carefully read the question and answer accordingly. Select the appropriate option in which process level the isolation should be specified?
- Correct Answer:
- during BIND process
- Carefully read the question and answer accordingly. Access path is determined for Dynamic SQL at run time when the PREPARE statement is issued. State True or False.
- Selected Option:
- T
- Carefully read the question and answer accordingly. Why SELECT * is not prefered in embedded SQL programs?
- Correct Answer:
- All of the above
- Carefully read the question and answer accordingly. Identify from the following, scenarios to use IEBGENER utility.
- Correct Answer:
- Create a backup copy of a sequential data set or a member of a partitioned data set or PDSEs or HFS files.
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=EVEN
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),EVEN)
- Whether STEP03 will execute ?
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Consider the below SORT Jcl and choose the correct purpose of it.
- //SYSIN DD *
- SORT FIELDS=COPY,STOPAFT=100
- OUTREC FIELDS=(1:8,3,10:60,8,69:X)
- /*
- //
- Correct Answer:
- The sorted output file will be copied first 100 records from input file and SPACES at 69th position.
- Carefully read the question and answer accordingly. Which DFSORT command is used to specify the number of records to be skipped before sorting or copying begins?
- Correct Answer:
- SKIPREC
- Carefully read the question and answer accordingly. SORT Fields = (6, 10,CH,D) .
- What does this statement represent?
- Correct Answer:
- Key length is 6, starts at 10th position, comparing type is character, arrange in descending order.
- Carefully read the question and answer accordingly. How can an in-stream dataset be terminated?
- Correct Answer:
- /*
- Carefully read the question and answer accordingly. The invalid 'Abnormal Disposition'(Job ends with Abnormal Return code) value for DISP parameter
- Correct Answer:
- NEW
- Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
- //STEP010 EXEC PGM=PGM1, COND=(0,GT)
- Correct Answer:
- // EXEC PROCNAME, COND.STEP010=(0,LE)
- Carefully read the question and answer accordingly. In JCL, Instream data has been passed using the following command ?
- Correct Answer:
- //SYSIN DD * input data /*
- Carefully read the question and answer accordingly. Consider, the value for Symbolic parameter is given in both JCL and PROC. While execution, the value given in the job is considered
- Correct Answer:
- T
- Carefully read the question and answer accordingly. The parameter that can be used to control the number of pages to be printed to output log
- Correct Answer:
- PAGES
- Carefully read the question and answer accordingly. Block size for DASD files must be defined as ?
- Correct Answer:
- BLKSIZE=0
- Carefully read the question and answer accordingly. Consider the following:
- // SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1
- Which of the following structures containing symbolic parameters will result in:
- TBISUSR.JCLCRS.DATA1?
- Correct Answer:
- &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
- Carefully read the question and answer accordingly. Consider the below Space parameter.
- SPACE=(TRK,(1,1),CONTIG)
- If CONTIG is specified and contiguous space is not available, what will happen ?
- Correct Answer:
- System terminates the job step
- Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
- Correct Answer:
- MSGLEVEL = (1,1)
- Carefully read the question and answer accordingly. Select the appropriate option with respect to ABEND?
- Correct Answer:
- All of the above
- Carefully read the question and answer accordingly. If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed
- 4094
- Carefully read the question and answer accordingly. What is the full form of GDG?
- Correct Answer:
- Generation Data Groups
- Carefully read the question and answer accordingly. Consider the following Job statement in a JCL:
- //MYJOB JOB(T,U202,SH1),'VIJAY N',CLASS=A
- How do you verify the syntax errors of above job without actually executing the job?
- Correct Answer:
- By modifying the first statement to //MYJOB JOB (T,U202,SH1),’VIJAY’,CLASS=A,TYPRUN=SCAN
- Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
- Correct Answer:
- ALTER command
- Carefully read the question and answer accordingly. Which "system abend" will occur when the job was cancelled because of violations or restrictions?
- Correct Answer:
- S122 Abend
- Carefully read the question and answer accordingly. Which utility is used to alter the existing GDG?
- Correct Answer:
- IDCAMS
- Carefully read the question and answer accordingly. Which of the following are possible cause of abends when running application programs?
- Correct Answer:
- Numeric variable defined in a progam contains non numeric data
- Carefully read the question and answer accordingly. A GDG has been defined in the following manner.
- DEFINE GDG (NAME(USERID.GDG.BASE) LIMIT(5) SCRATCH)
- What happens when a dataset of USERID.GDG.BASE is uncatalogued?
- Correct Answer:
- Deletes the dataset
- Correct Answer:
- //REPRO1 JOB ... //STEP1 EXEC PGM=IDCAMS //INDSET1 DD DSNAME=ISAMDSET,DISP=OLD, // DCB=(DSORG=IS,BUFNO=6) //SYSPRINT DD SYSOUT=A //SYSIN DD * REPRO - INFILE(INDSET1) - OUTDATASET(D40.EXAMPLE.KSDS1) /*
- arefully read the question and answer accordingly. The IBM utility used extensively to manage VSAM datasets
- Correct Answer:
- IDCAMS
- Carefully read the question and answer accordingly. Consider a scenario where the below file doesnt exist, what will happen after the execution of the step in JCL ?
- //STEP01 EXEC PGM=IEFBR14
- //CREATEPS DD DSN=TCHN670.TEMP,DISP=MOD,SPACE=(TRK,(1,1),RLSE),
- // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
- Correct Answer:
- TCHN670.TEMP will be created and deleted.
- Carefully read the question and answer accordingly. Consider the code snippet below: //STEP1 EXEC PGM = IDCAMS // SYSIN DD * DEFINE GDG (NAME(MY.GDG.BASE) LIMIT(3) SCRATCH ) /* Which of the following statements is True?
- Correct Answer:
- If the GDG 'MY.GDG.BASE' is uncatalogued, then it is deleted physically.
- Carefully read the question and answer accordingly. One IDCAMS JCL step comprises a Delete cluster, Define cluster, REPRO. When it is compiled, it returns a RC 8 for delete, RC 0 for Define and RC 4 for REPRO. Which RC will be notified to the User?
- Correct Answer:
- 8
- Carefully read the question and answer accordingly. How to sum the records starting at position 60 of length 5 and how to eliminate duplicates using the sort utility?
- Correct Answer:
- 1. Sum fields: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELDS=(60,5,ZD) // 2. Eliminate duplicates: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELDS=NONE //
- Carefully read the question and answer accordingly. Which DFSORT command is used to write the deleted records in a data set defined?
- Correct Answer:
- XSUM
- Carefully read the question and answer accordingly. It is possible to add sequence number using SORT
- Correct Answer:
- T
- Carefully read the question and answer accordingly. For the below IEBCOPY utility, dataset mentioned in IN6 DD contains 'A' to 'Z' PDS members.
- What parameter needs to be used to copy all the members except B,R,Z members into OUT1 dataset?
- //COPY JOB ...
- //JOBSTEP EXEC PGM=IEBCOPY
- //SYSPRINT DD SYSOUT=A
- //OUT1 DD DSNAME=DATASET1,UNIT=disk,VOL=SER=111112,
- // DISP=(OLD,KEEP)
- //IN6 DD DSNAME=DATASET6,UNIT=disk,VOL=SER=111115,
- // DISP=OLD
- //SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(1))
- //SYSUT4 DD UNIT=SYSDA,SPACE=(TRK,(1))
- //SYSIN DD *
- COPYOPER COPY OUTDD=OUT1
- INDD=IN6
- /*
- Correct Answer:
- EXCLUDE MEMBER=(B,R,Z)
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),(0,LE,STEP01),(4,LT))
- Consider if the STEP01 executes to give return code as 0.
- Whether the STEP03 will bypass ?
- T
- Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
- //STEP02 EXEC PGM=IEFBR14,COND=ONLY
- //STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
- Which are all the steps will get bypassed ?
- Correct Answer:
- STEP02 and STEP03
- Carefully read the question and answer accordingly. Consider the below scenario.
- A Job is calling 3 PROC's and each PROC is having 100 Steps in it. Whether the JOB will get executed ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. What is the prefix character for symbolic parameter
- Correct Answer:
- &
- Carefully read the question and answer accordingly. What parameter directs the output of the job log dataset ?
- Correct Answer:
- MSGCLASS
- Carefully read the question and answer accordingly. If the job has been coded with both a JOBLIB and STEPLIB, what will happen when execute the job?
- Correct Answer:
- The STEPLIB library is searched before the JOBLIB library. The JOBLIB library is ignored for the job step.
- Carefully read the question and answer accordingly. What are all the record formats can be accepted in JCL for RECFM parameter?
- Correct Answer:
- F,FB,V,VB,U
- Carefully read the question and answer accordingly. Consider the following JCL statements with use of symbolic parameters.
- //RUN PROC TAPE=2400,NAME=SYS1
- ......... (more lines of JCL not affecting the lines below)
- //A DD UNIT=&TAPE-2,DSN=&NAME..P
- Which of the following is the correct manner in which the DD statement parameters will get substituted?
- Correct Answer:
- //A DD UNIT=2400-2,DSN=SYS1.P
- Carefully read the question and answer accordingly. Consider, the value for Symbolic parameter is given in both JCL and PROC. While execution, the value given in the job is considered
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following operators would be given first priority for an relational expression in a JCL?
- Correct Answer:
- NOT
- Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
- //PRINTSS JOB CLASS=A,
- // MSGCLASS=X,MSGLEVEL=(1,1),
- // NOTIFY=&SYSUID
- How do you print the job stream as a sysout?
- TYPRUN=COPY
- Carefully read the question and answer accordingly. The parameter that can be used to control the number of pages to be printed to output log
- Correct Answer:
- PAGES
- Carefully read the question and answer accordingly. What abend occurs when the Job exceeds the Time limit specified?
- Correct Answer:
- S322
- Carefully read the question and answer accordingly. Consider, the value for Symbolic parameter is given in both JCL and PROC. While execution, the value given in the job is considered
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which value in TIME parameter will allow the job or a step to use the maximum amount of time?
- Correct Answer:
- TIME=NOLIMIT
- Carefully read the question and answer accordingly. Which of the following are valid positional parameters in a JCL statement?
- Correct Answer:
- PGM=program-name
- Carefully read the question and answer accordingly. Which of the following equivalents are correct?
- Correct Answer:
- DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
- Carefully read the question and answer accordingly. In a JCL, the DD statement has two types of parameters.
- Choose from the following.
- Correct Answer:
- Positional, Keyword
- Carefully read the question and answer accordingly. Which of the following gives the correct function of a //JCLLIB statement?
- Correct Answer:
- Identify the libraries that the system will search for include groups or procedures named in EXEC statements
- Carefully read the question and answer accordingly. The return code can be a number between
- Correct Answer:
- 0 to 4095
- Carefully read the question and answer accordingly. Sample Code
- //MYJOB JOB(P,U202,SH1),'FRANK SMITH',CLASS=A
- //STEP1 EXEC PGM=PROGRAM1,SYSTEM=LINK,DEPT=INV,TYPE=REC
- //FILEIN DD DSNAME=&SYSTEM..&DEPT..&TYPE,DISP=SHR
- //FILEOUT DD DSNAME=&SYSTEM..&DEPT..DATA,DISP=(NEW,CATLG,DELETE),
- // AVGREC=U,SPACE=(80,(100,20),RLSE),
- // DCB=(LRECL=80,RECFM=FB)
- Referring to the above coding, what is the effective dataset name for the data definition FILEOUT?
- Correct Answer:
- LINK.INV.DATA
- Carefully read the question and answer accordingly. // SET FILEOUT='MYID.TEST.OUTPUT'
- Consider the above code snippet. What is the correct statement to Nullify the FILEOUT symbolic parameter?
- Correct Answer:
- // SET FILEOUT=
- Carefully read the question and answer accordingly. Which of the following is correct with respect to REGION parameter?
- Correct Answer:
- A REGION parameter on an EXEC statement, is only taken into consideration if there is no REGION parameter on the JOB statement
- Carefully read the question and answer accordingly. which of the following defines a NULL statement in a JCL?
- Correct Answer:
- By keeping double slash alone //
- Carefully read the question and answer accordingly. What should be coded in the job statement if the program needs 100K of central storage?
- Correct Answer:
- //Jobid JOB Jobname,,REGION=100K,,
- Carefully read the question and answer accordingly. What are all the national characters be allowed in JCL name field?
- Correct Answer:
- # @ and $
- Carefully read the question and answer accordingly. You run a job executing a cataloged procedure, and you need to determine whether or not a statement was overridden.
- Which of the following symbols appear in columns 1 through 3 of the output listing if such a statement is overridden?
- Correct Answer:
- X/
- Carefully read the question and answer accordingly. The invalid 'Abnormal Disposition'(Job ends with Abnormal Return code) value for DISP parameter
- Correct Answer:
- NEW
- Carefully read the question and answer accordingly. Which of the following is TRUE with respect to parameters in JCL?
- Correct Answer:
- Key word parameters can be coded in any order after any positional parameters
- Carefully read the question and answer accordingly. Consider Space= (27998,(20000,1000),RLSE, CONTIG). It requests that primary space be allocated on contiguous cylinders and tracks.State True or False
- Correct Answer:
- TRUE
- Carefully read the question and answer accordingly. Is it possible to define VOL=SER= parameter for Tape datasets?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. What is the maximum number of DD statements can be coded in a single Step ?
- Correct Answer:
- 3273
- Carefully read the question and answer accordingly. State True or False
- IF-THEN-ELSE construct can be coded in JCL.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which parameter can not be used on a JOB statement?
- Correct Answer:
- JCLLIB
- Carefully read the question and answer accordingly. Which of the following is not a function of SDSF ?
- Correct Answer:
- Scheduling a Job
- Carefully read the question and answer accordingly. The invalid 'Status' value for DISP parameter
- Correct Answer:
- CATLG
- Carefully read the question and answer accordingly. Maximum number of steps that could be executed in JCL
- Correct Answer:
- 255
- Carefully read the question and answer accordingly. How many datasets can be merged at a time?
- Correct Answer:
- 16
- Carefully read the question and answer accordingly. Valid values for RECFM
- Correct Answer:
- FB
- Carefully read the question and answer accordingly. State whether true or false:
- INCLUDE statement and OMIT statement cannot be specified together in DFSORT
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What is the purpose of the ‘DD KEYLEN’ parameter in a JCL?
- Correct Answer:
- Specifies the length of the keys in the dataset
- Carefully read the question and answer accordingly. What does * in sysout=* mean?
- Correct Answer:
- Same as MSGCLASS
- Carefully read the question and answer accordingly. What is the command to display the jobs with job name beginning with ‘JBPCH002’ in SDSF
- Correct Answer:
- PRE JBPCH002
- Carefully read the question and answer accordingly. Which of the following are valid statements related to JCL procedures?
- Correct Answer:
- A cataloged procedure is stored in a partitioned data set and may be invoked by any job on the system.
- Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
- //STEP010 EXEC PGM=PGM1, COND=(0,GT)
- Correct Answer:
- // EXEC PROCNAME, COND.STEP010=(0,LE)
- Carefully read the question and answer accordingly. A JCL program can have more than one JOB card. State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. How can the submitting user’s RACF authority be overridden in a job stream?
- Correct Answer:
- Through the USER and PASSWORD parameter
- Carefully read the question and answer accordingly. Consider the following Job card:
- //TSOCABX JOB (00010,1020983),'TSOCAB'
- Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
- Correct Answer:
- ,CLASS=D
- Carefully read the question and answer accordingly. State TRUE or FALSE
- GDGs are a group of data sets which are related to each other chronologically and functionally. These related data sets share a different data set name
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which sort command will eliminate duplicate records in the data set?
- SUM FIELDS=NONE
- Carefully read the question and answer accordingly. Consider the following Job statement in a JCL:
- //MYJOB JOB(T,U202,SH1),'VIJAY N',CLASS=A
- How do you verify the syntax errors of above job without actually executing the job?
- Correct Answer:
- By modifying the first statement to //MYJOB JOB (T,U202,SH1),’VIJAY’,CLASS=A,TYPRUN=SCAN
- Carefully read the question and answer accordingly. ABEND Code for Time out
- Correct Answer:
- S322
- Carefully read the question and answer accordingly. Given the following in a JCL:
- COND=(code,LE)
- For which of the following values of RC will the step be executed?
- Correct Answer:
- IF RC < code
- Carefully read the question and answer accordingly. How many number of generations can be held in a GDG?
- 255
- Carefully read the question and answer accordingly. State True or False. Consider the below scenario.
- //STEP1 EXEC PGM=PGM1
- //DD1 DD DSN=USERID.FILE1(+1),DISP=(NEW,CATLG),SPACE=(TRK,(100,10))
- //STEP2 EXEC PGM=PGM1
- //DD1 DD DSN=USERID.FILE1(+0),DISP=(OLD)
- If a (+1) generation dataset is created in the first step of a job, it can be referenced in later steps of the same Job as (+0).
- Correct Answer:
- F
- Carefully read the question and answer accordingly. How to identify the LIMIT size of an Generation Data Group or GDG? (Assume the GDG name as GDG.ONE)
- Selected Option:
- //STEP4 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=GDG.ONE,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * LISTCAT /* - 1.0
- Correct Answer:
- //STEP4 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=GDG.ONE,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * LISTCAT /*
- Carefully read the question and answer accordingly. Which utility is used to alter the existing GDG?
- Correct Answer:
- IDCAMS
- Carefully read the question and answer accordingly. If a generation data set is specified as input without the generation number, what will the input to the DD ?
- Correct Answer:
- Concatenation of all the cataloged generations
- Carefully read the question and answer accordingly. While editing a file/program,how will you know the changes you have done since the last SAVE command.
- Correct Answer:
- Give COMPARE SESSION on the command line
- Carefully read the question and answer accordingly. Which Line command is used to compress a dataset?
- Correct Answer:
- Z
- Carefully read the question and answer accordingly. Which TSO command allows you to quit the screen without saving the changes ?
- Correct Answer:
- CANCEL
- Carefully read the question and answer accordingly. Which Resource access control facility command (RACF) is used to grand access?
- Correct Answer:
- PERMIT
- Carefully read the question and answer accordingly. State TRUE or FALSE
- While creating the data set in 3.2 option, if I don’t give the dataset name in " " then the first qualifier will get added and the data set name will be as <USERID>.<USERID>.PS
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What is the TSO block line Command to get convert all the lowercase alphabetic characters to uppercase
- Correct Answer:
- Issue the block line command UCC
- Carefully read the question and answer accordingly. How to cancel the unwanted job in spool?
- Correct Answer:
- By issuing C against the job
- Carefully read the question and answer accordingly. Alternate Indexes do not support a reusable base cluster.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What is the purpose of FREESPACE parameter while defining cluster ?
- Correct Answer:
- FREESPACE is reserved within the data component of a KSDS to accommodate inserting new records and the updating of records.
- Carefully read the question and answer accordingly. State True or False.
- Can we have duplicate records in Alternate index file ?
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Is DELETE command deletes all objects associated with a retention period that has not expired.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. If you wish to use the REWRITE command how should the VSAM file be opened ?
- Correct Answer:
- It must be opened as INPUT-OUTPUT.
- Carefully read the question and answer accordingly. Consider the following:
- Statement 1: ISPF option TS can be used to browse VSAM RRDS datasets.
- Statement 2: Using TS option you can edit records in a VSAM RRDS dataset.
- Which of the following is applicable for above?
- Correct Answer:
- Both statements 1 and 2 are true
- Carefully read the question and answer accordingly. In RRDS records are accessed based on the RBA ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
- Correct Answer:
- ESDS
- Carefully read the question and answer accordingly. Is EMPTY parameter in GDG, specifies that only the oldest generation dataset is to be uncataloged when the maximum is reached.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which of the following statements are true about CONTROL INTERVAL SPLIT ?
- Correct Answer:
- The CI will split if one or more records is to be inserted and there is no enough free space in the CI.
- Approximately half of the records in the CI are transferred to a free CI and the record to be inserted is placed in the original CI.
- Carefully read the question and answer accordingly. Select the tool which is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing, printing, copying and maintain data?
- Correct Answer:
- FILE AID
- Carefully read the question and answer accordingly. Do all versions of the GDG have to be of the same record length ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which of the following statements are true?
- Statement 1 : Empty slots is in the data set are used for adding records in LDS.
- Statement 2 : A record cannot be deleted, but you can reuse its space for a record of the same length, in an ESDS.
- Correct Answer:
- Statement 1 is false, 2 is true
- Carefully read the question and answer accordingly. Is KEYS parameter defined for a ESDS cluster ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Consider there are 10 records in KSDS file. How to print only the last five records ?
- Correct Answer:
- PRINT IDS (DSN) SKIP(5) COUNT (5)
- Carefully read the question and answer accordingly. Consider the following statements with regard to ESDS datasets in COBOL VSAM processing:
- Statement 1: An ESDS dataset can be used in Dynamic access mode.
- Statement 2: Records can be inserted in the middle of an ESDS dataset using INSERT statement.
- Which of the following is applicable for the above statements?
- Statement 1 and 2 are both false
- Carefully read the question and answer accordingly. Which command is used to define the file as a spanned file while creating it?
- Correct Answer:
- SPANNED
- Carefully read the question and answer accordingly. Which attribute is used to define the number of bytes allotted for the Control Interval while allocating VSAM file by using IDCAMS?
- Correct Answer:
- CISZ
- Carefully read the question and answer accordingly. In a KSDS dataset, if a record length is 128, which of the following are appropriate CISIZE values?
- Correct Answer:
- 512
- Carefully read the question and answer accordingly. Consider the following:
- Statement 1: You can delete a record in VSAM KSDS dataset using TS option.
- Statement 2: TS option also shows the deleted VSAM KSDS records.
- Which of the following is applicable for above?
- Correct Answer:
- Statement 1 is true, 2 is false
- Carefully read the question and answer accordingly. Consider the following statements with regard to RRDS datasets in COBOL VSAM processing:
- Statement 1: In the COBOL SELECT clause for a RRDS file, Relative key is R-RRN and R-RRN is part of the record description.
- Statement 2: ACCESS mode is DYNAMIC can be used for a RRDS dataset.
- Which of the following is applicable for the above statements?
- Correct Answer:
- Statement 1 is false, 2 is true
- Carefully read the question and answer accordingly. Which of the following option under ISPF you will choose to browse a VSAM KSDS dataset?
- Correct Answer:
- TS option in ISPF, then F, F and option 1
- Carefully read the question and answer accordingly. What is the TSO option to view the VSAM data set in file manager?
- Correct Answer:
- TS;F;F
- Carefully read the question and answer accordingly. What are the parts of index component in VSAM?
- Correct Answer:
- Sequence set
- Carefully read the question and answer accordingly. In a large VSAM KSDS dataset, how do you know the number of records deleted since its creation?
- Correct Answer:
- LISTCAT with option ENTRIES and ALL gives the statistics including number of records deleted
- Carefully read the question and answer accordingly. Is the integer values of both average and maximum are identical for fixed length records while defining the cluster RECORDSIZE(average maximum)] ?
- Correct Answer:
- T
- Carefully read the question and answer accordingly. EXPORT command under AMS is used to export _______________.
- Correct Answer:
- VSAM data to a sequential dataset only in a DASD or TAPE
- Carefully read the question and answer accordingly. What is the BUFFERSPACE parameter while defining a cluster ?
- Correct Answer:
- BUFFERSPACE is used to specify the minimum amount of buffer space required to process the dataset.
- Carefully read the question and answer accordingly. Before loading a sequential flle to a VSAM KSDS, the input file must be sorted on key value.
- State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. List down the allowed rules in naming convention of VSAM datasets?
- Correct Answer:
- 1) Length of file name should not be exceeded 44 characters 2) Letters allowed are (A-Z), (0-9),national characters(@,#,$), and hyphen(-)
- Carefully read the question and answer accordingly. Is KEYS parameter defined for a ESDS cluster ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Consider the following scenario:
- The CI size is 4096 bytes and it currently has 4 records. Record 1 is 1000 bytes. Records 2, 3 and 4 are 1200, 1000, 800 bytes respectively.
- What will happen if the system tries to insert another record of size 1000 bytes?
- Correct Answer:
- Only CI split happens
- Carefully read the question and answer accordingly. State TRUE or FALSE.
- Is the RECORD KEY clause in COBOL code is used for accessing records in Random mode in KSDS file ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. What is the total number of extents for a VSAM dataset.
- Correct Answer:
- 123
- Carefully read the question and answer accordingly. Choose the character of VSAM
- Correct Answer:
- An access method that has a service program called AMS which consists of a utility program called IDCAMS.
- Carefully read the question and answer accordingly. State True or False.
- If the KSDS file is created with RESUE option, Alternate index can be created or not ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. In RRDS records are accessed based on the RBA ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. What is the command to print the VSAM data set on ISPF panel?
- Correct Answer:
- PRINT IDS(/) CHAR
- Carefully read the question and answer accordingly. Consider the following statements:
- SET INDEX TO 8.
- SET INDEX DOWN BY 4.
- SET INDEX TO 4.
- SET INDEX UP BY 1.
- SET INDEX DOWN BY 3.
- What is value of INDEX after executing the above statements?
- Correct Answer:
- 2
- Carefully read the question and answer accordingly. Which section is used to pass data from one program to another program ?
- Correct Answer:
- LINKAGE SECTION
- Carefully read the question and answer accordingly. Consider the following scenario:
- A program PRG1 calls PRG2, using statement CALL 'PRG2' USING P1,P2.
- Both the programs are compiled and linked error free. Compiler option DYNAMIC is used.
- Afterwards some modification is done to PRG2.
- Which of the programs we need to compile to execute the main program?
- Correct Answer:
- Only PRG2
- Carefully read the question and answer accordingly. ON SIZE ERROR can be used with
- Correct Answer:
- All of the above
- Carefully read the question and answer accordingly. If you were passing a table via linkage
- Correct Answer:
- Index is preferable
- Carefully read the question and answer accordingly. What is the difference if the sub program is coded with EXIT PROGRAM and the sub program is coded with GO BACK ?
- Correct Answer:
- EXIT PROGRAM : Stop executing the program GO BACK : The control will go back to the main program
- Carefully read the question and answer accordingly. Linkage section is
- a) It is must for called program
- b) It is must for calling program
- c) used for displaying messages in sub program
- d) Temporary storage for called program
- Temporary storage for called program
- Carefully read the question and answer accordingly. How can we ensure that when the referenced sub-program is called for the next time, it will be entered in its initial state?
- Correct Answer:
- Use CANCEL command
- Carefully read the question and answer accordingly. In nested programs, Linkage section is not mandatory even if calling program is passing some data.
- State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1 : SEARCH ALL does not require the table to be sorted order.
- Statement 2: SEARCH minimizes the number of comparisions done on table element compared to SEARCH ALL.
- Correct Answer:
- Both statements are false
- Carefully read the question and answer accordingly. Can Subscript value be passed to a Subprogram via Linkage Section ? State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. ‘CONTINUE’ is a No operation statement and indicates that no executable instruction is present.
- State True or False.
- Correct Answer:
- TRUE
- Carefully read the question and answer accordingly. Consider the following COBOL program snippet:
- WORKING-STORAGE SECTION.
- 01 WS-CALLED-PGM PIC X(8) VALUE ‘PROGRAM2’.
- PROCEDURE DIVISION.
- MAIN-LOGIC.
- CALL WS-CALLED-PGM.
- STOP RUN.
- CALL is a valid statement in the above code.
- State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Consider the following scenario:
- 01 WS-TABLE.
- 05 WS-TABLE-ELEMENT OCCURS 5 TIMES PIC X(1) VALUE 'AAAAA'.
- DISPLAY WS-TABLE.
- What is the error in the above code?
- Correct Answer:
- VALUE literal exceeds the PICTURE definition.
- Carefully read the question and answer accordingly. State whether TRUE or FALSE
- The index value of an array can be passed thru LINKAGE SECTION
- Correct Answer:
- F
- Carefully read the question and answer accordingly. If you want to store two variables say, subscript and amount in a COMP and COMP-3 field, which one is preferred.
- Correct Answer:
- For a subscript COMP is preferred and for the amount COMP-3 is preferred.
- Carefully read the question and answer accordingly. Which of the following is true with respect to ‘CALL ‘program’ USING BY CONTENT'?
- Correct Answer:
- Parameters passed to called program are protected.
- Carefully read the question and answer accordingly. Which of the following is used to set the size of a table, depending on the value of a particular variable data item?
- Correct Answer:
- OCCURS DEPENDING ON
- Carefully read the question and answer accordingly. Determine the bytes
- 01 REC-1.
- 01 L PIC X(6).
- 02 M REDEFINES L.
- 03 N OCCURS 6 TIMES PIC 9.
- 02 O OCCURS 4 TIMES.
- 03 P PIC X(5).
- 03 Q PIC 999.
- Correct Answer:
- 38
- Carefully read the question and answer accordingly. In CALL BY CONTEXT method, sub program will not be able to modify passed parameters
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Called program can contain Call statements.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What will happen If the below type of scenario code is getting compiled?
- Sub program id is wrongly given in sub program. The main program A is Calling the sub program B
- Correct Answer:
- LINK EDIT will fail
- Carefully read the question and answer accordingly. Which of the following will cause SOC4 abend with respect to processing of TABLES?
- Correct Answer:
- A Subscript or INDEX is out of bounds (for the table).
- Carefully read the question and answer accordingly. In nested programs, Linkage section is not mandatory even if calling program is passing some data.
- State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. How does static call differ from Dynamic call?
- Correct Answer:
- Static call is bound with calling pgm at link edit time whereas dynamic call is loaded from pgm library and static is a part of executable load module
- Carefully read the question and answer accordingly. Which of the following cannot be used to set an initial value to an index?
- Correct Answer:
- ADD or MOVE statement.
- Carefully read the question and answer accordingly. Consider the following Data Division entries:
- 01 T1.
- 02 TABLE-1 OCCURS 400 TIMES INDEXED BY A.
- 03 TN PIC X(10).
- 03 TNAME PIC X(30).
- 03 TADDRESS PIC X(40).
- 01 TEMP PIC X(10).
- PROCEDURE DIVISION.
- SEARCH ALL TABLE-1 AT END GO TO ERROR-ROUTINE
- WHEN TEMP = TN(A) PERFORM PROCESS-PARA.
- Which of the following is correct?
- Correct Answer:
- ASCENDING/DESCENDING KEY clause is required in the table description
- Carefully read the question and answer accordingly. Can Subscript value be passed to a Subprogram via Linkage Section ? State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. State whether True or False
- REDEFINES clause is used to allow the same storage allocation to be referenced by different data
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Which of the following defines a variable length table?
- Correct Answer:
- 01 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
- Carefully read the question and answer accordingly. GO BACK is coded instead of STOP RUN in a standalone COBOL program. Execution result will be
- Correct Answer:
- Similar to STOPRUN
- Carefully read the question and answer accordingly. ‘CONTINUE’ is a No operation statement and indicates that no executable instruction is present.
- State True or False.
- Correct Answer:
- TRUE
- Carefully read the question and answer accordingly. In CALL BY REFERENCE method, data value of variable is passed to sub program
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Can Index value be passed to a Subprogram via Linkage Section ? State True or False.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. State True or False
- SEARCH ALL is a binary search and the table should be sorted by using ASCENDING/DESCENDING KEY clause before using SEARCH ALL
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What does File status 92 signify?
- Correct Answer:
- File is opened for input and an attempt is made to write to it.
- Carefully read the question and answer accordingly. Select the list of verbs which will be used to include the Copybooks in COBOL program.
- Correct Answer:
- COPY INCLUDE
- Carefully read the question and answer accordingly. Which of the following gives the correct syntax to define the record descriptions in the FILE SECTION if there are three different record descriptions for the same file?
- Correct Answer:
- FD filename DATA RECORDS ARE RD01, RD02, RD03. 01 RD01 PIC X(n). 01 RD02 PIC X(n). 01 RD03 PIC X(n).
- Carefully read the question and answer accordingly. State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. 01 AAA pic 9(4).
- 01 BBB pic 9(6).
- move 123456 into BBB.
- move BBB to AAA.
- display BBB.
- what would be the value of AAA
- Correct Answer:
- 3456
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: V and . (Decimal point) picture characters may be used in the same data description entry
- Statement 2: BLANK WHEN ZERO is allowed only for numeric data items
- Which of the following is applicable for above?
- Correct Answer:
- Statement 1 is false and 2 is true
- Carefully read the question and answer accordingly. PERFORM RANGE-TO-BE-EXECUTED
- VARYING E FROM 1 BY 1 UNTIL I>15
- AFTER F FROM 1 BY 1 UNTIL J>10
- Correct Answer:
- The range RANGE-TO-BE-EXECUTED will be performed 150 times
- Carefully read the question and answer accordingly. Select the one in which the INSPECT verb is syntactically correct?
- Correct Answer:
- INSPECT LEADING-SPACE-ITEM REPLACING LEADING SPACES BY ZEROS.
- Carefully read the question and answer accordingly. In the example below 05 WS-VAR1 PIC X(5),05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5),PROCEDURE DIVISION MOVE 'ABCDE' TO WS-VAR1.Now what is the value of WS-VAR1 and WS-VAR2 ?
- Correct Answer:
- WS-VAR1 = ABCDE WS-VAR2 = Low values or Spaces
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- WORKING-STORAGE SECTION.
- 01 WS-SUB1 PIC 99 VALUE 1.
- 01 WS-SUB2 PIC 99 VALUE 1.
- PROCEDURE DIVISION.
- MAIN-LOGIC.
- PERFORM PROCESS-PARA UNTIL WS-SUB1 > 8 AND WS-SUB2 > 10
- PROCESS-PARA.
- ADD 1 TO WS-SUB1.
- ADD 1 TO WS-SUB2.
- How many number of times PROCESS-PARA will be executed ?
- Correct Answer:
- 10
- Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
- ELSE MOVE A TO B.
- Which of the following describes the above sentence correctly
- Correct Answer:
- IF A NOT = 1 AND 2 AND 3 MOVE A TO B
- Carefully read the question and answer accordingly. The following entries appear in the WORKING-STORAGE SECTION:
- 01 DATE-TDY.
- 05 YY PIC XX VALUE "90".
- 05 MM PIC XX VALUE "12".
- 05 DD PIC XX VALUE :31".
- 01 DATE-EDIT PIC XX/XX/XX.
- MOVE DATE-TDY TO DATE-EDIT.
- Correct Answer:
- 901231
- Carefully read the question and answer accordingly. Select the allowable level numbers of Elementary data items in COBOL program.
- Correct Answer:
- 01 TO 49 , 77
- Carefully read the question and answer accordingly. The COBOL program contains the following IF statement
- IF VAR1 NOT = 'L' OR 'M' OR 'N'
- PERFORM PARA-ERROR
- As a result of this statement, When will PARA-ERROR will be executed.
- Correct Answer:
- If VAR1 was defined as a condition-name with values 'L', 'M' or 'N'
- Carefully read the question and answer accordingly. 05 VAR-A PIC 9(9).99.
- 05 VAR-B PIC X(10).
- PROCEDURE DIVISION.
- MOVE 12345.99 TO VAR-A.
- MOVE 12345.99 TO VAR-B.
- DISPLAY VAR-A.
- DISPLAY VAR-B.
- Output will be
- Correct Answer:
- Compilation Error
- Carefully read the question and answer accordingly. Which of the following is correct with respect to condition-names?
- Correct Answer:
- condition-name is a identifier defined with level number 88.
- Carefully read the question and answer accordingly. Which of the following symbols can NOT be coded on position 7 of a COBOL program?
- Correct Answer:
- #
- Carefully read the question and answer accordingly. Which ABEND will occur when the un-initialized numeric item is used in the COMPUTE or MOVE statements?
- Correct Answer:
- S0C7
- Carefully read the question and answer accordingly. A1, A2 and A3 are condition-names. Consider the following compound conditions:
- A. A1 OR A2 OR A3
- B. A1 AND A2 AND A3
- C. A1 OR (A2 AND A3)
- D. A1 AND (A2 OR A3)
- If A1 is known to evaluate to 'False' which of the above four conditions can be evaluated without additional information?
- Correct Answer:
- ALL (All conditions evaluate to 'False')
- Carefully read the question and answer accordingly. I HAVE FOLLOWING DECLARATION.
- 02. A PIC X(10) VALUE 'XXXXXXXXXX'.
- 02. B REDEFINES A.
- 05. C PIC X(3).
- 05. D PIC X(3).
- 05. E PIC 9(3).
- IN MY PROG, I HAVE
- MOVE 1 TO E.
- DISPLAY A.
- WHAT WILL BE DISPLAYED AS A RESULT OF THIS?
- Correct Answer:
- XXXXXX001X
- Carefully read the question and answer accordingly. Identify which of these are the correct declaration?
- 1) 01 VAR1 VALUE 'ABCDE'.
- 05 VAR2 PIC X(3).
- 05 VAR3 PIC X(2).
- 2) 01 VAR1.
- 05 VAR2 PIC X(3) VALUE 'ABC'.
- 05 VAR3 PIC X(2) VALUE 'DE'.
- 3) 01 VAR1 VALUE 'ABCDE'.
- 05 VAR2 PIC X(3) VALUE 'ABC'.
- 05 VAR3 PIC X(2) VALUE 'DE'.
- 4) 01 VAR1 PIC X(5) VALUE 'ABCDE'.
- 05 VAR2 PIC X(3).
- 05 VAR3 PIC X(2).
- Correct Answer:
- 1 and 2
- Carefully read the question and answer accordingly. In code snippet, how many times the paragraph CALC-PARA will be executed?
- PERFORM CALC-PARA THRU CALC-PARA-EXIT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 13.
- Correct Answer:
- 12
- Carefully read the question and answer accordingly. 77 A PIC X(10) VALUE IS “PPQQRRSSTT”.In PROCEDURE DIVISION contains the statement EXAMINE P REPLACING ALL “PQR” BY “XYZ” .Indicate which one of the following is true
- Correct Answer:
- The EXAMINE statement is incorrect as it is used to replace a single character by another single character but not a group of characters.
- Carefully read the question and answer accordingly. What is the content of RESULT after execution of the following COBOL instruction. The start
- value of RESULT is 0.
- PERFORM VARYING COUNT FROM 1 BY 1 UNTIL COUNT = 6
- COMPUTE RESULT = RESULT + 1
- END-PERFORM
- Correct Answer:
- 5
- Carefully read the question and answer accordingly. Consider the below compute verb and select the appropriate option
- 01 WS-VARIABLES.
- 05 WS-QTY PIC 9(2) VALUE 10.
- 05 WS-DISC PIC 9(2) VALUE 39.
- 05 WS-TOT PIC 9(2) VALUE 18.
- PROCEDURE DIVISION.
- 1000-MAIN-PARA.
- COMPUTE ROUNDED WS-TOT =
- WS-QTY * WS-DISC .
- DISPLAY "QUANTITY :" WS-QTY.
- DISPLAY "DISCOUNT :" WS-DISC.
- DISPLAY "TOTAL :" WS-TOT.
- Correct Answer:
- The program will throw compilation error stating that the COMPUTE statement discarded due to data-name should come before the ROUNDED statement
- Carefully read the question and answer accordingly. Consider the following declaration in the WORKING-STORAGE section.
- 01 WEEK-DAY-NAMES PIC X(45)
- VALUE 'MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY'.
- 01 WEEK-DAYS REDEFINES WEEK-DAY-NAMES.
- 02 WEEK_DAY PIC X(9) OCCURS 5 TIMES.
- What value will be present in WEEK-DAY(4) ?
- Correct Answer:
- 'URSDAY FR’
- Carefully read the question and answer accordingly. What is the result of the following code snippet?
- 05 WS-VAR1 PIC 9(4)V99
- 05 WS-VAR2 PIC 9(4).99
- DIVIDE VAR1 INTO VAR2 ROUNDED
- Correct Answer:
- A compile time error since VAR2 has an edit symbol in its PIC and compiler expects a numeric value
- Carefully read the question and answer accordingly. The Cobol compiler at the time of compilation indicates the error in the following Statement
- MULTIPLY 0.1 BY Y.
- Which of the following had given the correct clause?
- Correct Answer:
- Y has the PIC CLAUSE ZZZ9.9
- Carefully read the question and answer accordingly. 05 PART1 PIC S9(3) SIGN LEADING SEPARATE VALUE - 567.
- 05 PART2 PIC S9(3) SIGN TRAILING VALUE - 567.
- What will be the value of PART1 & PART2 after execution?
- Correct Answer:
- PART1 will be -567 PART2 will be 567
- Carefully read the question and answer accordingly. By considering the below code what will be the content of WS-FINAL-ITEM?
- 01 WS-ITEM1 PIC X(08) VALUE 'LANGUAGE'.
- 01 WS-ITEM2 PIC X(10) VALUE 'COBOL IS A'.
- 01 WS-FINAL-ITEM PIC X(30).
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- STRING WS-ITEM1 DELIMITED BY SIZE
- WS-ITEM2 DELIMITED BY SPACES
- INTO WS-FINAL-ITEM.
- DISPLAY 'WS-FINAL-ITEM :' WS-FINAL-ITEM.
- Correct Answer:
- LANGUAGECOBOL
- Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
- 01 WS1 PIC **999.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- MOVE 01234 TO WS1.
- DISPLAY "FIRST VALUE :" WS1.
- MOVE 00012 TO WS1.
- DISPLAY "SECOND VALUE :" WS1.
- STOP RUN.
- consider the above code snippet and select the appropriate option.
- Correct Answer:
- The SYSOUT will be as below FIRST VALUE :*1234 SECOND VALUE :**012
- Carefully read the question and answer accordingly. A=10, B=5, C=10, D=5, E=0 What will be the value of E after the following statement ADD A, B TO C, D GIVING E.
- Correct Answer:
- Syntax Error
- Carefully read the question and answer accordingly. 01 VAR1 PIC 9(10)
- UNSTRING "WELCOME" INTO VAR1
- Execution of above command will result in
- Correct Answer:
- Error as sending field should be an identifier and not a literal
- Carefully read the question and answer accordingly. Consider the following PROCEDRE DIVISION statement:
- IF A LESS THAN B WRITE REC-1
- ELSE WRITE REC-2
- If, before executing this statement, A contains alphanumeric Literal 'l' and B contains alphanumeric literal 'A', then
- Correct Answer:
- REC-1 is always written
- Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
- 05 WS-A PIC 9(2) VALUE 5.
- 05 WS-B PIC 9(2) VALUE 39.
- 05 WS-C PIC 9(2) VALUE 18.
- 05 WS-D PIC 9(2) VALUE 20.
- PROCEDURE DIVISION.
- 0000-MAIN-PARA.
- DIVIDE WS-A INTO WS-B GIVING WS-C REMAINDER WS-D.
- DISPLAY "WS-A :" WS-A
- DISPLAY "WS-B :" WS-B
- DISPLAY "WS-C :" WS-C
- DISPLAY "WS-D :" WS-D
- After the execution of above snippet what will be the output?
- WS-A :05 WS-B :39 WS-C :07 WS-D :04
- Carefully read the question and answer accordingly. The following are Data division entries
- 01 S PIC 9(2) VALUE IS 50
- 01 T PIC 9(3) VALUE IS 950
- The following is the procedure Division statement
- ADD S TO T ON SIZE ERROR DISPLAY 'ON SIZE ERROR'
- DISPLAY 'T' T
- What is the value of B when it is displayed?
- Correct Answer:
- 100
- Carefully read the question and answer accordingly. Which of the following is correct with respect to below REDEFINES clause?
- 01 WS-VAR1.
- 05 WS-F-NAME PIC X(5) VALUE "ALICE".
- 05 WS-L-NAME PIC X(5) VALUE "PETER".
- 01 WS-FINAL-NAME REDEFINES WS-VAR1 PIC X(10).
- Correct Answer:
- All of the listed above
- Carefully read the question and answer accordingly. Suppose a program has the following code. What will be the output?
- MAIN-PARA.
- DISPLAY 'MAIN-PARA'
- PERFORM SECTION-C.
- STOP RUN.
- SECTION-C.
- PARA-A1.
- DISPLAY 'SECTION A PARA A1'.
- PARA-A2.
- DISPLAY 'SECTION A PARA A2'.
- Correct Answer:
- MAIN-PARA SECTION A PARA A1 SECTION A PARA A2
- Carefully read the question and answer accordingly. State True or False
- X(10) can be redefined with x(20).
- Correct Answer:
- T
- Carefully read the question and answer accordingly. What is the result of the following code snippet?
- 05 WS-VAR1 PIC 9(4)V99
- 05 WS-VAR2 PIC 9(4).99
- DIVIDE VAR1 INTO VAR2 ROUNDED
- A compile time error since VAR2 has an edit symbol in its PIC and compiler expects a numeric value
- Carefully read the question and answer accordingly. Match the following select the right option
- 1. COMP - a. Single Precision Floating point
- 2. COMP1 - b. Double Precision Floating point
- 3. COMP2 - c. Packed Decimal Format
- 4. COMP3 - d. Binary Storage Format
- 1 - d 2 - a 3 - b 4 - c
- Carefully read the question and answer accordingly. 01 Item-1 Pic x(30) Value "Hello World!".
- 01 Item-2 Pic x(30).
- . . .
- Display Item-1
- Display Function Upper-case(Item-1)
- Display Function Lower-case(Item-1)
- Move Function Upper-case(Item-1) to Item-2
- Display Item-2
- Select the appropriate outputs after execution of above code snippet
- Correct Answer:
- Hello World! HELLO WORLD! hello world! HELLO WORLD!
- Carefully read the question and answer accordingly. Unsigned Packed Decimal number 2431 will be stored as
- Correct Answer:
- 02431F
- Carefully read the question and answer accordingly. 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 ?
- Correct Answer:
- 5
- Carefully read the question and answer accordingly. SORT REPORT-FILE
- ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
- USING INPUT-FILE GIVING OUTPUT-FILE.
- Which one of the following is false.
- Correct Answer:
- The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
- Carefully read the question and answer accordingly. Determine the total number of bytes in the following
- 01 REC-1.
- 02 FIRST-GROUP.
- 03 A1 PIC X(4).
- 03 A2 PIC 99.
- 02 REDEFINES FIRST-GROUP.
- 03 A3 PIC 999.
- 03 A4 PIC 999.
- 02 THIRD-GROUP.
- 03 A5 OCCURS 5 TIMES PIC 99.
- Correct Answer:
- 16
- Carefully read the question and answer accordingly. IF NOT AGE LESS THAN 30 AND 40
- GO TO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLE.
- Correct Answer:
- If AGE is greater than or equal to 30 but less than 40.
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- WORKING-STORAGE SECTION.
- 01 WS-COUNT PIC 9 VALUE 0.
- 01 WS-A PIC 9 VALUE 1.
- 01 WS-B PIC 9 VALUE 9.
- PROCEDURE DIVISION.
- MAIN-LOGIC.
- MOVE 1 TO WS-COUNT.
- IF WS-A = 1
- ADD 1 TO WS-COUNT
- IF WS-B = 9
- CONTINUE
- END-IF
- ADD 1 TO WS-COUNT
- END-IF.
- ADD 1 TO WS-COUNT.
- What is the value stored in WS-COUNT after executing the above statements?
- Correct Answer:
- 4
- Carefully read the question and answer accordingly. Which of the following variable declarations are syntactically correct?
- (1) 01 V-1 PIC SX(4).
- (2) 01 V-2 PIC S9(4).
- (3) 01 V-1 PIC V99.
- (4) 01 V-1 PIC P99.
- (5) 01 V-1 PIC 9(4)S.
- (6) 01 V 1 PIC X(4).
- Correct Answer:
- 2, 3 and 4
- Carefully read the question and answer accordingly. Select the allowed data items available in COBOL
- Correct Answer:
- 9 V S X
- Carefully read the question and answer accordingly. A=10, B=5, C=10, D=5, E=0 What will be the value of E after the following statement ADD A, B TO C, D GIVING E.
- Correct Answer:
- Syntax Error
- Carefully read the question and answer accordingly. The following portion of procedure division
- MOVE 0 TO A, I.
- PARA-1.
- ADD 3 TO A.
- ADD 2 TO I.
- IF I < a=" ‘,">B MOVE A TO C
- ELSE MOVE B TO C.
- ADD C TO D.
- Indicate which one of the following does not support the above statements
- Correct Answer:
- The larger of the values, A and B will be added to D.
- Carefully read the question and answer accordingly. Consider the following program.
- PERFORM 10 TIMES
- IF P=Q
- NEXT SENTENCE
- ELSE
- DISPLAY Q
- END-IF
- END-PERFORM.
- If after 5th iteration P becomes equal to Q then what happens.
- Correct Answer:
- It will come out of the perform loop.
- Carefully read the question and answer accordingly. Take a look at the following COBOL instruction. When will instruction-3 be executed?
- IF A=B THEN
- instruction-1
- ELSE
- instruction-2.
- instruction-3
- Correct Answer:
- always
- Carefully read the question and answer accordingly. In DATA DIVISION the entries are
- 01 BILL-AMT.
- 02 A PIC 99.
- 02 FILLER PIC X(7).
- Indicate which one of the following statement in the Procedure division is correct
- Correct Answer:
- MOVE ZEROS TO A.
- Carefully read the question and answer accordingly. Consider the following program segment.
- A1.
- PERFORM A2 THRU A3 VARYING A FROM 1 BY 1 UNTIL A = 4.
- DISPLAY A.
- STOP RUN.
- A2.
- ADD 1 TO A.
- ADD A TO SUM
- A3.
- EXIT.
- Indicate which of the following will take place.
- Correct Answer:
- There will be an infinite loop.
- Carefully read the question and answer accordingly. What should be usage clause if a dat item declared as PIC s9(4) requires storage of 3 bytes ?
- Correct Answer:
- COMP-3
- Carefully read the question and answer accordingly. SORT REPORT-FILE
- ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
- USING INPUT-FILE GIVING OUTPUT-FILE.
- Which one of the following is false.
- Correct Answer:
- The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
- Carefully read the question and answer accordingly. Consider the following Code Snippet.
- 01 WS-S PIC 9.
- PERFORM PARA-1 VARYING WS-S FROM 1 BY 1 UNTIL WS-S = 10.
- PARA-1.
- DISPLAY SUB.
- How many times will Para-1 will be executed?
- Correct Answer:
- Infinite Loop
- Carefully read the question and answer accordingly. Which of the following statements is True about MERGE Keyword?
- Correct Answer:
- Files to be merged should be of same record size
- Carefully read the question and answer accordingly. ACCEPT FROM DATE will return current date in following format
- Correct Answer:
- YYMMDD
- Carefully read the question and answer accordingly. A COBOL programmer wants to repeat an instruction 8 times. How can he/she code this?
- Correct Answer:
- PERFORM 8 TIMES instruction END-PERFORM
- Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
- UBTRACT A FROM D, B FROM E, C FROM F
- Carefully read the question and answer accordingly. Which of the following gives the correct purpose of a RECORD KEY clause in COBOL?
- The RECORD KEY in the SELECT clause identifies the files with the primary key as it will be known to the program.
- Carefully read the question and answer accordingly. 05 VAR1 PIC 99.
- Which if the following are correct for above code snippet
- MOVE ZEROES TO VAR1
- Carefully read the question and answer accordingly. The output of Link Editor is ______________.
- Correct Answer:
- Load Module
- Carefully read the question and answer accordingly. If PIC clause for a data item is PPPP999 and the value moved to the data-item is 534 then the edited value taken is
- 000534
- Carefully read the question and answer accordingly. How many bytes does a S9(5) SIGN TRAILING SEPARATE field occupy?
- Correct Answer:
- 6
- Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
- Correct Answer:
- MULTIPLY CORRESPONDING RECORD1 BY RECORD2
- Carefully read the question and answer accordingly. How many bytes does PICTURE 9v99 occupy?
- Correct Answer:
- 3
- Carefully read the question and answer accordingly. 88 level variables can be declared in FD section
- T
- Carefully read the question and answer accordingly. After instructions are executed by a PERFORM para statement, control returns to the statement directly following the PERFORM.
- State True or False.
- Correct Answer:
- T
- Carefully read the question and answer accordingly. Consider the following COBOL code:
- MOVE WORK-REC TO OUT-REC.
- WRITE OUT-REC.
- Which of the following is the equivalent single statement that can substitute the above two statements?
- Correct Answer:
- WRITE OUT-REC FROM WORK-REC.
- Carefully read the question and answer accordingly. Which of the following is not a procedure division verb?
- Correct Answer:
- Insert
- Carefully read the question and answer accordingly. ADDRESS OF option is used with linkage variables in which levels?
- Correct Answer:
- 01
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: RENAMES clause is used at a 77 level number
- Statement 2: Condition name clause is used at 88 level number
- Which of the following is applicable for above?
- Correct Answer:
- Statement 1 is false and 2 is true
- Carefully read the question and answer accordingly. Result of DIVIDE A INTO B GIVING C
- Correct Answer:
- C=B/A
- Carefully read the question and answer accordingly. What is LOW-VALUES & HIGH-VALUES in COBOL program?
- Correct Answer:
- A LOW-VALUE is the lowest possible character in machine's collating sequence. A HIGH-VALUE is the highest possible character in machine's collating sequence.
- Carefully read the question and answer accordingly. What is the maximum size of numeric fields in COBOL ?
- Correct Answer:
- 18
- Carefully read the question and answer accordingly. Scope terminator indicates
- Correct Answer:
- End of statement
- Carefully read the question and answer accordingly. Select the operator which is used in COMPUTE verb for calculations?
- Correct Answer:
- **
- Carefully read the question and answer accordingly. Which of the following is an example for control verbs in COBOL?
- Correct Answer:
- GO TO
- Carefully read the question and answer accordingly. Which one of the following is incorrect?
- Correct Answer:
- SUBTRACT A FROM D, B FROM E, C FROM F
- Carefully read the question and answer accordingly. What is the maximum size of alphanumeric literals in COBOL ?
- Correct Answer:
- 160
- Carefully read the question and answer accordingly. Consider the following statements:
- Statement 1: RENAMES clause is used at a 77 level number
- Statement 2: Condition name clause is used at 88 level number
- Which of the following is applicable for above?
- Correct Answer:
- Statement 1 is false and 2 is true
- Carefully read the question and answer accordingly. How many bytes does PICTURE S9(8) COMP occupy?
- Correct Answer:
- 4
- Carefully read the question and answer accordingly. What is the maximum size of alphanumeric literals in COBOL ?
- Correct Answer:
- 160
- Carefully read the question and answer accordingly. Take a look at the following COBOL program. Assuming A, B, C, ... are COBOL instructions,
- in which order will they be executed?
- MAIN-PAR.
- PERFORM INIT-PAR
- Z
- PERFORM TERM-PAR
- Z
- STOP RUN
- .
- INIT-PAR.
- A
- B
- PERFORM READ-X
- .
- LOOP-PAR.
- E
- F
- .
- TERM-PAR.
- G
- H
- .
- READ-X.
- X.
- Correct Answer:
- A B X Z G H Z
- Carefully read the question and answer accordingly. Which level items may be used to represent fields within a record ?
- Correct Answer:
- 02 to 49
- Carefully read the question and answer accordingly. Which of the following is correct in-line PERFORM?
- Correct Answer:
- PERFORM MOVE A TO B END-PERFORM.
- Carefully read the question and answer accordingly. Which of the following is correct with respect to 01 level entries in data division?
- Correct Answer:
- 01 level entries can appear in any section of the Data Division
- Carefully read the question and answer accordingly. Which of the following is true with respect to SQL communication area in COBOL program?
- orrect Answer:
- It is a data structure that must be included in any host-language program using SQL. It is used to pass feedback about the sql operations to the program. Fields are return codes, error messages, handling codes and warnings.
- Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
- Correct Answer:
- DIVIDE A BY B
- Carefully read the question and answer accordingly. Results of an EVALUATE statement is same after arranging the order of WHEN clause
- Correct Answer:
- f
- Carefully read the question and answer accordingly. In UNSTRING statement, characters of sending field will be transferred to receiving field including delimiter
- F
- Carefully read the question and answer accordingly. Select the OCCURS statement which is syntactically wrong.
- Correct Answer:
- WORKING-STORAGE SECTION. 05 WS-TABLE1 OCCURS 100 INDEXED BY INX-B PIC X(5).
- Carefully read the question and answer accordingly. Results of an EVALUATE statement is same after arranging the order of WHEN clause
- Correct Answer:
- F
- Carefully read the question and answer accordingly. DELIMITED BY SIZE in STRING fucntion, makes the transfer of characters from source field to receiving field to stop once a blank is encountered
- f
- Carefully read the question and answer accordingly. State True or False.
- COMP-1 stores binary data.
- Correct Answer:
- F
- Carefully read the question and answer accordingly. The sign is over punched with the numeric value stored in the last bite for which decimal fields ?
- Correct Answer:
- Zoned decimal
- Carefully read the question and answer accordingly. Which of the following is not a valid scope terminator in COBOL?
- orrect Answer:
- END.
- Carefully read the question and answer accordingly. The symbol V in a PIC clause stands for a decimal point between two consecutive digits and is counted for in the field size. State True or False
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Which of the following are the coding standards for COBOL programming?
- Correct Answer:
- All of the above
- Carefully read the question and answer accordingly. 05 VAR1 PIC 99.
- Which if the following are correct for above code snippet
- Correct Answer:
- MOVE ZEROES TO VAR1
- Carefully read the question and answer accordingly. 01 level number in COBOL is an independent variable and will take less memory space ?
- Correct Answer:
- F
- Carefully read the question and answer accordingly. Mismatch in LRECL or BLKSIZE or RECFM between COBOL program and the JCL gives you a file status of
- Correct Answer:
- 39
- Carefully read the question and answer accordingly. Which of the following COBOL EVALUATE statements in syntactically NOT correct?
- Correct Answer:
- EVALUATE A WHEN A=0 DISPLAY 'A = 0' WHEN A=5 DISPLAY 'A = 5' WHEN OTHER DISPLAY 'A IS NOT 0 NOR 5' END-EVALUATE
- Carefully read the question and answer accordingly. How many bytes does PICTURE 9v99 occupy?
- orrect Answer:
- 3
- Carefully read the question and answer accordingly. ADD CORRESPONDING identifier-1 TO identifier-2
- Correct Answer:
- All the above
- Carefully read the question and answer accordingly. Which of the following statements is FALSE about RENAMES clause?
- Correct Answer:
- RENAME clause can regroup a 01, 77, 88 or 66 entry
Add Comment
Please, Sign In to add comment