what is dynamic array in cobol?
what is the difference b/w array and table in cobol?
Answers were Sorted based on User's Feedback
Answer / harihar
Difference between:
Array is a multiple occurances of a single data item with
same data type.But table can have more than one data item
with different types of data type respectively.
Dynamic Array:
The dynamic array is nothing but no of occurrances of data
item changes dynamically during the program execution.
| Is This Answer Correct ? | 21 Yes | 1 No |
Answer / ram g
array also can have more than one data item with different
data types...
before differentiating b/w array nd table...just thing how
will get table...
absolutely u r rite about dynamic array definition but is
it possible in cobol current version..if yes..then how? plz
dont say occurs depending on ...which is not at all dynamic
array concept...
| Is This Answer Correct ? | 4 Yes | 2 No |
in how many mode we can open a file ?
What is the different between index and subscript?
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.
9(2).99 how many bytes take? Why . consider as a byte?
How is sign stored in a comp-3 field?
1) can we display the index?
hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.
What care has to be taken to force program to execute above 16 Meg line?
input:-AABBCCDDEFGHIIJ output:- ABCDEFGHIJ Here in input we hav the duplicate characters i.e repeating characters.SO we should eliminate the duplicate characters and should display the output in ascending order.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I want Display WS-VARX and WS-VARN?