if we display var1 then what will b displayed in below
condition.
77 var1 pic s9(2) value -10.
77 var1 pic s9(2) value -11.
" " " -12.
" " " -13.
-14
...
...
-19.
Answers were Sorted based on User's Feedback
Answer / s
It will give Compilation error as the variable is not
uniquely defined
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / piyush mani
u r wrt but if we declare diff var for above values then result will b like
value result
-10 1{
-11 1J
-12 1K
-13 1L
.........
THANKS
| Is This Answer Correct ? | 5 Yes | 1 No |
a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?
what are the diferences b/w sub-script and index?
What does the IS NUMERIC clause establish ?
What is the usage of comp fields in cobol?
i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
What is the difference between index and subscript?
how many maximum no of variables can be declared in linkage section ?
What is the difference between performing a SECTION and a PARAGRAPH?
In COBOL "BEFORE" advancing is there or not ?
how can u pass the values into db2 values from cobol ?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?