Simple cobol mainframe interview..... How do you read a DMSII data record? FIND NEXT, FIND LAST, FIND FIRST, FIND PRIOR How do you create a record in DMSII database? CREATE, MOVE values, STORE record How do you update a DMSII data record? OPEN database as update, LOCK the record, BEGIN-TRANSACTION, STORE the record, END-TRANSACTION How do you update a key item in a DMSII database? DELETE old, RECREATE, and STORE record with new key What are the 5 kinds of PERFORM statements? PERFORM, PERFORM THRU, PERFORM VARYING, PERFORM UNTIL, PERFORM number of TIMES How do you create a flat file? OPEN file as output, WRITE records, CLOSE file with SAVE, CRUNCH, LOCK, or PURGE How do you read a flat file? OPEN file as input, Read records sequentially, CLOSE file How do you update or rewrite a record in a flat file? OPEN file as I-O, Read record, Move values, REWRITE record, CLOSE file. What are the 4 divisions in a COBOL program? Identification Division, Environment Division, Data Division, Procedure Division How do you define a table/array in COBOL? User OCCURS. Example: 01 MONTHS-TABLE. 05 MONTH-NAME PIC X(9) OCCURS 12.
Simple cobol mainframe interview..... How do you read a DMSII data record? FIND NEXT, FIND LAST, FIND FIRST, FIND PRIOR How do you create a record in DMSII database? CREATE, MOVE values, STORE record How do you update a DMSII data record? OPEN database as update, LOCK the record, BEGIN-TRANSACTION, STORE the record, END-TRANSACTION How do you update a key item in a DMSII database? DELETE old, RECREATE, and STORE record with new key What are the 5 kinds of PERFORM statements? PERFORM, PERFORM THRU, PERFORM VARYING, PERFORM UNTIL, PERFORM number of TIMES How do you create a flat file? OPEN file as output, WRITE records, CLOSE file with SAVE, CRUNCH, LOCK, or PURGE How do you read a flat file? OPEN file as input, Read records sequentially, CLOSE file How do you update or rewrite a record in a flat file? OPEN file as I-O, Read record, Move values, REWRITE record, CLOSE file. What are the 4 divisions in a COBOL program? Identification Division, Environment Division, Data Division, Procedure Division How do you define a table/array in COBOL? User OCCURS. Example: 01 MONTHS-TABLE. 05 MONTH-NAME PIC X(9) OCCURS 12.