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
Write a program to explain size error.
) How do u handle errors in BMS macro?
What is the LINKAGE SECTION used in COBOL?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
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?
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
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.
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the difference between perform … with test after and perform … with test before?
How do you define a variable of comp-1 and comp-2?
Can we redefine the field of x(200) to less than 200?
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
In COBOL, what is the different between index and subscript?
how do you reference the printer file formats from cobol programs
What rules are to be followed while using the corresponding options?