01 a pic 9(3) value is 123
01 b pic 9(6)
move a to b

wht will be the value ? and

01 a pic x(6) value is abc
01 b pic x(3)
move a to b

wht will be the value ?

Answer Posted / arthi

1.
000123

2.
abc

Ravi, I guess you didnt mean the '-' as a minus sign in front of 000123, and abc. your answer is not clear enough.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to explain size error.

679


) How do u handle errors in BMS macro?

1431


What is the LINKAGE SECTION used in COBOL?

895


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2725


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6840






i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2109


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2062


What is the difference between structured cobol programming and object alternativelyiented cobol?

757


What is the difference between perform … with test after and perform … with test before?

885


How do you define a variable of comp-1 and comp-2?

707


Can we redefine the field of x(200) to less than 200?

822


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2124


In COBOL, what is the different between index and subscript?

763


how do you reference the printer file formats from cobol programs

669


What rules are to be followed while using the corresponding options?

643