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
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the difference between comp and comp-3 usage?
Explain what you understand by passing by value.
What are literals?
Which division and paragraphs are mandatory for a COBOL program?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What rules are followed by the search verb.
Difference between array and sub-script ?
how do you reference the fixed unblock file formats from cobol programs
What are the rules of the move verb?
How many bytes S(8) comp field occupy and its maximum value?
What is the problem of ordered sequential files access?
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
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.