Is it possible to mutliply a comp variable with an comp-3
variable. Will there be any error if i do it?
Answer Posted / lu
yes, but never do it, you always multiply COMP with COMP
and COMP-3 with COMP-3....when you want to display : move
COMP to pic 9 (extend field) and comp-3 to pic 9 (extend
field)
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Mention the guidelines to write a structured cobol program?
what are decleratives in cobol?
Write a program to explain size error.
how do you reference the esds vsam file formats from cobol programs
What is rmode(24)
explain sorting techniques in cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How do you get the data to code the BMS macro?
Difference between array and sub-script ?
Write the code implementing the perform … varying.
How you can read the file from bottom?
How do get the result of your program directly on your pc?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......