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
What are the various section in data division and briefly explain them.
When is inspect verb is used in cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is difference between static and dynamic call in cobol?
What is the local-storage section?
how do you reference the ksds vsam file formats from cobol programs
How do you define a variable of comp-1 and comp-2?
Write a cobol program making use of the redefine clause.
Define cobol?
How do define dynamic array in cobol.
how do you reference the rrds file formats from cobol programs
A table has two indexes defined. Which one will be used by the SEARCH?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What are various search techniques in cobol? Explain.
What is the difference between next sentence and continue in cobol programing language?