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
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Explain what you understand by passing by value.
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
what is the difference between COBOL2 AND COBOL390?
Which mode is used to operate the sequential file?
Can we redefine the field of x(200) to less than 200?
What is the difference between Call and a Link?
what are decleratives in cobol?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to remove 2 duplicate records and copy only one using job control language?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Discuss about changing dataset name in proc.
Which division and paragraphs are mandatory for a COBOL program?
What are 77 levels used for?