How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More COBOL Interview Questions

ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????

6 Answers   TCS,


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

0 Answers   Steria,


What is the mode in which you will OPEN a file for writing?

4 Answers  


how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?

2 Answers   TCS,


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

0 Answers  


where did you see the information regarding abend codes in jcl?

1 Answers   Hewitt,


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


how to display the dataset information?

2 Answers  


How to read a 100 record from a file through cobol?

2 Answers  


IF I mention stop run in CICS what happens?

0 Answers   IBM,


Define static linking and dynamic linking.

0 Answers  


what are the isolation levels and where we use it in the db2 program

3 Answers   TCS,


Categories