how to display comp3 variables reply soon ?
Answers were Sorted based on User's Feedback
Answer / fjord
01 ws-a pic s9(5) comp-3 value 12345.
01 ws-b pic s9(5).
Procedure division.
move ws-a to ws-b
display ws-b upon terminal.
Is This Answer Correct ? | 16 Yes | 0 No |
Answer / 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 |
Answer / lovely.surendra
just use a another ws-variable and then move the value of
COMP variable into it,
now u can do any activitity with this ws-variable.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sachin
you can also do this using the jcl sort
inrec = (1,4,pd,m4)
Is This Answer Correct ? | 0 Yes | 1 No |
What is SSRANGE, NOSSRANGE ?
Can we move X(9) to 9(9). If yes what are the ways for doing this?
Explain complete concept of table handling in COBOL with an example?
Why did you choose to work with ibm mainframe cobol programming?
What is rmode(any) ?
hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a record and if some condition is matched tat particular record must be deletd fom the ps
What is the difference between copy and include in cobol?
How you can delete a record from a ps file in cobol?
SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB
What is the difference between static call & Dynamic call?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech