what will be the output when
a)pic 9(6)value 000178 is moved to pic ***,***.
b)pic 9(5) value 57397 is moved to pic $$,$$9.

Answers were Sorted based on User's Feedback



what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 5739..

Answer / vinay sonar

a)***,178
b)$7,379

Is This Answer Correct ?    5 Yes 0 No

what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 5739..

Answer / rx

A. ****178
B. 57397

Is This Answer Correct ?    3 Yes 1 No

what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 5739..

Answer / rx

Agree Jaganmohanreddy's answer!
B answer is 57,397

I missed the ','

Is This Answer Correct ?    1 Yes 0 No

what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 5739..

Answer / jaganmohanreddy

for B answer is 57,397 just check it once

Is This Answer Correct ?    0 Yes 0 No

what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 5739..

Answer / asa

A. ****178
B. BBB$7

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More COBOL Interview Questions

I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?

5 Answers  


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,


What are VS COBOL 11 special features?

1 Answers  


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

1 Answers  


What is the maximum length of a field you can define using COMP-3?

4 Answers   Complex System, Infosys,


Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.

12 Answers  


What are the different open modes available in cobol?

1 Answers  


How to read the last 100 records from a COBOL file. The file contains N number of records.

11 Answers   IBM,


A table has two indexes defined. Which one will be used by the SEARCH?

1 Answers  


Difference between ps, esds

3 Answers  


How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?

4 Answers  


how many maximum no of variables can be declared in linkage section ?

2 Answers   HCL,


Categories