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
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 |
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 |
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.
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
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 ?
Are you comfortable in cobol or jcl?
can we use reference modification an arry.
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.
1.What is the limit of linkage section?
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 ?
What is the maximum length of a field you can define using COMP-3 in COBOL?
TYPES OF SORTINGS. which is more prefarable.
Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad