GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  TCS  >  COBOL

 Print  |  
Question:  consider two data items
77 W-A PIC 9(3)V99 VALUE 23.75
77 W-B PIC ZZ9V99 VALUE 123.45
after the statement
MOVE W-A TO W-B
what will be W-B value?
a.123.75
b.b23.75 (where b indicates space)
c.023.75
d.invalid move




September 09, 2005 00:05:19 #1
 Praveen Kumar   Member Since: September 2005    Total Comments: 6 

RE: consider two data items 77 W-A PIC 9(3)V99 VA...
 

Ans is b ie.. b23.75 (where b indicates space).

Reason is W-B is defined with editing characters Z  which suppreses zeros with spaces.

     

 

Back To Question