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 / praveen

Arati was correct. if you move x(6) varibale to x(3) there
will not be any blank spaces.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is report-item in COBOL?

694


What is redefines clause in COBOL?

829


What are the different rules for performing sort operation?

745


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.

2041


Are you comfortable in cobol or jcl?

628






how to move the records from file to array table. give with code example

2202


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

2088


What is the difference between PIC 9.99 and 9v99 in COBOL?

720


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1939


How you can read the file from bottom?

648


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

805


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17002


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

722


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

915


What are various search techniques in cobol? Explain.

629