how to display comp3 variables reply soon ?
Answer Posted / chandra
SELECT ACCT-FILE ASSIGN TO UT01.
01 A pic s9(5)comp-3 value 12345.
01 ACC-REC.
02 B pic s9(5)comp-3.
02 FILLER X(77).
PD.
OPEN ACCT-FILE.
MOVE A TO B.
WRITE ACC-REC.
BROWSE THE FILE AND WRITE HEX ON IN THE COMMAND PROMPT THEN
PRESS ENTER....IT WILL SHOW U THE COMP-3 VALUE.....
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
Have you used comp and comp-3 in your project? And how?
What is Pic 9v99 Indicates in COBOL?
how do you reference the esds vsam file formats from cobol programs
How do you differentiate between cobol and cobol-ii?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is link edit in cobol?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What are the different types of condition in cobol and write their forms.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Write some characteristics of cobol as means of business language.
Mention the guidelines to write a structured cobol program?
What is length is cobol?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is redefines clause in COBOL?