where do u use low-value and high value in cobol
Answers were Sorted based on User's Feedback
Answer / mehdee
When you need a data field to have value less than any
other data INITIALZE or MOVE LOW-VALUES to that filed. same
for HIGH-VALUES when you need that field to have valuue
more that any other data.
Is This Answer Correct ? | 21 Yes | 2 No |
Answer / aditya
it depends upon the logic we are writing.if we dont know the lowest value record.we can move the low values and can write a logic as read next in the case of files concept.its just an example
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / mahesh
when we a small integer then we have to use low value
otherwise go for high-value
Is This Answer Correct ? | 3 Yes | 16 No |
Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?
7 Answers Bank Of America, Mind Tree,
How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?
01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
is it possible to rename 01 level?
what is difference between the sysabend and userabend?
what happens when a copybook variables are declared using include statement ?
I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?
How do you get the data to code the BMS macro?
What are 77 levels used for?
Are you comfortable in cobol or jcl?
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?????
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?