can we print comp 3 stmts how ?

Answers were Sorted based on User's Feedback



can we print comp 3 stmts how ?..

Answer / kaarthik


1. Redefine the comp-3 with a numeric field and then move
the numeric value to an Alphanumeric value and then Display
it.

Regards,
Kaarthik

Is This Answer Correct ?    7 Yes 1 No

can we print comp 3 stmts how ?..

Answer / amarnadh reddy

Another way is,

Use File-Aid, we can possible to see comp 3 stmts.

Ex: open File-Aid, 1st option means browse option. give
data set name and copy book layout and open F mode.

Is This Answer Correct ?    5 Yes 3 No

can we print comp 3 stmts how ?..

Answer / saravana

Move it to other x() or 9() variable and display that variable

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

When is a scope terminator mandatory?

3 Answers  


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


What is report-item?

1 Answers   IBM,


what is s000 u4087 error? please give the all error codes in cobol,jcl.

0 Answers  


What are options have been removed in COBOL 11?

1 Answers  






What is the local-storage section?

0 Answers  


Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?

6 Answers  


Explain what you understand by passing by value.

0 Answers  


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

0 Answers  


How can you get the ksds file records into your cobol program?

0 Answers  


In a program, variables are used but no DB2 involved in it. Can you call it as host variables??

4 Answers   EDS,


Categories