I have a variable account-number declared as comp-3, s9(10)
comp-3 in a file. How do i find a particular account number
say 123456 in that file?
Answer Posted / balaji
Put HEX ON in the file and you can find the numbers
equivalent to the hexa decimal
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
For rewrite, why is it mandatory that file needs to be opened?
Explain how to differentiate call by context by comparing it to other calls?
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 ......
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Name some of the examples of COBOl 11?
What is the usage of comp fields in cobol?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is an in line perform? When would you use it? Anything else you wish to say about it.
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?