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 / cj
Numeric items are moved right to left (before the decimal
point) and left to right (after the decimal point) from
source item to the destination item.
So the answer for the first move=> Variable b will have
value 000123 in it. (In the question value 123 should be
within quotes)
Alphanumeric (as well as alphabetic) items are moved left to
right from source item to destination item.
So the answer for the second move=> Variable b will have abc
stored in it. (In the question value abc should be within
quotes)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
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.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How can you get the ksds file records into your cobol program?
What rules are followed by the search verb.
How to know whether the module is dynamical or statistical?
Write some characteristics of cobol as means of business language.
A table has two indexes defined. Which one will be used by the SEARCH?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What are declaratives and what are their uses in cobol?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How many sections are there in data division in COBOL?
Why did you choose to work with ibm mainframe cobol programming?
What is link edit 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?
what is search and searchall?what is the diffrence between them?give an best example?