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


Please Help Members By Posting Answers For Below Questions

What are the various section in data division and briefly explain them.

683


When is inspect verb is used in cobol?

666


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

806


What is difference between static and dynamic call in cobol?

766


What is the local-storage section?

669






how do you reference the ksds vsam file formats from cobol programs

646


How do you define a variable of comp-1 and comp-2?

691


Write a cobol program making use of the redefine clause.

720


Define cobol?

854


How do define dynamic array in cobol.

662


how do you reference the rrds file formats from cobol programs

785


A table has two indexes defined. Which one will be used by the SEARCH?

746


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?

883


What are various search techniques in cobol? Explain.

639


What is the difference between next sentence and continue in cobol programing language?

696