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

State the various causes of s0c1, s0c5 and s0c7.

665


Describe the cobol database components?

683


How do we get current date from system with century in COBOL?

807


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2734


What are literals?

632






Difference between array and sub-script ?

1169


What are the pertinent COBOL

2046


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

426


What is comp-1 and comp-2?

766


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


What is Pic 9v99 Indicates in COBOL?

730


example for sub strings ? and refernce modifications whit output pls

1847


how can i see junk values in dclgen or in hostvariable of comp ?

2546


what is the difference between COBOL2 AND COBOL390?

2455


Mention the guidelines to write a structured cobol program?

620