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

I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2117


What is link edit in cobol?

858


how do you define single dimensional array and multidimensional array in your cobol?

767


How do you get the data to code the BMS macro?

1569


how do you reference the fixed unblock file formats from cobol programs

804






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)?

729


What is a scope terminator give example?

735


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

955


Explain what you understand by passing by value.

806


What is the local-storage section?

763


How do you differentiate between cobol and cobol-ii?

753


Can a Search can be done on a table with or without Index?

924


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

875


What is the usage of comp fields in cobol?

753


What is the problem of ordered sequential files access?

811