01 xxx pic 9(4).
01 yyy pic 9(6).
move 123456 into yyy.
move yyy to xxx.
display yyy.
what would be the value of yyy
Answer Posted / siba
In numeric number alingment is right to left
truncation is done in left side
the datatype size of y is 6
so value of y is 123456
Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What are the different rules to perform a Search?
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.
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
what are decleratives in cobol?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How do you reference the following file formats from cobol programs?
How you can characterize tables in cobol?
Explain how you can characterize tables in cobol?
What is the utilization of copybook in cobol?
how do you define single dimensional array and multidimensional array in your cobol?
What is amode(24)?
Explain about different table spaces.
Why would you use find and get rather than to obtain?
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.