In a program, variables are used but no DB2 involved in it.
Can you call it as host variables??

Answers were Sorted based on User's Feedback



In a program, variables are used but no DB2 involved in it. Can you call it as host variables??..

Answer / shilpa

no it is not a host variable it is a working storage
variable or variables used in the program

Is This Answer Correct ?    4 Yes 1 No

In a program, variables are used but no DB2 involved in it. Can you call it as host variables??..

Answer / mdvasanth86

In a Cobol-DB2 program, which is essentially a COBOL program
with SQL statements embedded into it, COBOL is the host
language and DB2 is the guest ( 'non-host' for lack of a
better word ).

When it is a pure COBOL program , there really is no point
in calling it a host variables, however, you can still call it.

Is This Answer Correct ?    1 Yes 0 No

In a program, variables are used but no DB2 involved in it. Can you call it as host variables??..

Answer / shilpa

no it is not a host variable

Is This Answer Correct ?    0 Yes 1 No

In a program, variables are used but no DB2 involved in it. Can you call it as host variables??..

Answer / baalu

hi,this is baalu.
thanx to shilpa such a beautiful ans togive me.
k bye

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More COBOL Interview Questions

I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE

12 Answers   TCS,


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

0 Answers  


Are you comfortable in cobol or jcl?

0 Answers  


can we use reference modification an arry.

1 Answers  






I have PS flat file with 14 records. I want to read from 4th to 9th record and want to write those 6 records (4th record to 9th record) to another PS file (output file). there is no key defined in the input file. I just want read a certain Consecutive records. can any one please give me the procedure division Coding for this. I have coded the below coding but the READ-PARA is performing only 1 time even though I have 14 records in my input file (i.e FILE-1): PROCEDURE DIVISION. A000-SECTION. MOVE 0 TO I. OPEN INPUT FILE-1. IF CHECK-KEY1 > 0 DISPLAY "OPEN ERROR FOR FILE-1, CODE IS:" CHECK-KEY1 END-IF. OPEN EXTEND NEWFILE-1 IF CHECK-KEY3 > 0 DISPLAY "OPEN ERROR FOR NEWFILE-1 COD IS" CHECK-KEY3 END-IF. PERFORM READ-PARA THRU EXIT-PARA UNTIL EOF-REC = 'YES'. DISPLAY " FINALLY OUT OF LOOP" CLOSE FILE-1 CLOSE NEWFILE-1 STOP RUN. READ-PARA. ADD 1 TO I READ FILE-1 AT END MOVE 'YES' TO EOF-REC IF I > 3 AND < 10 PERFORM WRITE-PARA ELSE DISPLAY "NOT IN RANGE" END-IF. EXIT-PARA. EXIT. WRITE-PARA. WRITE NEW-REC FROM FILE1-REC.

8 Answers   IBM,


1.What is the limit of linkage section?

4 Answers  


How to Write the RESTART Logic Using COBOL?

4 Answers   GalaxE, L&T, Syntel, TCS,


suppose there is one PF having two members PF1 PF2.PF has one unique key Emp ID.could you tell me uniqueness in PF will be effective across members as well ? assume emp iD 3333 is in member PF1 would same Emp id be exist also in member PF2 ?

2 Answers   Tesco HSC, Wipro,


What is the maximum length of a field you can define using COMP-3 in COBOL?

1 Answers   UGC Corporation,


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad

35 Answers  


Categories