how to display comp3 variables reply soon ?

Answers were Sorted based on User's Feedback



how to display comp3 variables reply soon ?..

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

how to display comp3 variables reply soon ?..

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

how to display comp3 variables reply soon ?..

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

how to display comp3 variables reply soon ?..

Answer / sachin

you can also do this using the jcl sort

inrec = (1,4,pd,m4)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is SSRANGE, NOSSRANGE ?

5 Answers  


Can we move X(9) to 9(9). If yes what are the ways for doing this?

3 Answers  


Explain complete concept of table handling in COBOL with an example?

2 Answers   IBM, TCS, Wipro,


Why did you choose to work with ibm mainframe cobol programming?

0 Answers  


What is rmode(any) ?

0 Answers  






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

5 Answers   iNautix,


What is the difference between copy and include in cobol?

1 Answers  


How you can delete a record from a ps file in cobol?

1 Answers  


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.

2 Answers   Wipro,


How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


What is the difference between static call & Dynamic call?

2 Answers   CSC, TCS,


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

0 Answers  


Categories