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 / ravi
Answer to first question is -000123
and answer to second question is -abc
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What guidelines should be followed to write a structured cobol prgm?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How many sections are there in data division in COBOL?
What is the utilization of copybook in cobol?
Explain how to differentiate call by context by comparing it to other calls?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How do you differentiate between cobol and cobol-ii?
What kind of error is trapped by on size error option?
How do you define a variable of comp-1 and comp-2?
how can i see junk values in dclgen or in hostvariable of comp ?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.