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 / chowdary
after executing this program output will be
b value is 000123
and
b value is abc
there is no blanks after abc in b, because we have taken
its length as 3 in pic clause.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Why would you use find and get rather than to obtain?
Explain what you understand by passing by value.
Describe the cobol database components?
What are all the divisions of a COBOL program?
What are various search techniques in cobol? Explain.
Give some examples of command terminators?
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.
Which Search verb is equivalent to PERFORM…VARYING?
Explain about different table spaces.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Difference between array and sub-script ?
What is length is cobol?
Define static linking and dynamic linking.
Why did you choose to work with ibm mainframe cobol programming?