What will happen if we move SPACES to numeric field and
ZEROES to alphabetic field?

Answer Posted / ram.g

ans to last ans

anything you can move to alpha...provided ..ur input is w/n
quotes...


ans to ur qn...

its quite possible by using redefine command...

the field will be sharing same memorylocation..

eg: 05 ws-num pic 99
10 ws-char redefines ws-num pic x(2)

move 12 to ws-num
move 'ab' to ws-char

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the code implementing the perform … varying.

646


how do you reference the ksds vsam file formats from cobol programs

666


How do you reference the following file formats from cobol programs?

695


What kind of error is trapped by on size error option?

740


What is perform what is varying?

709






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.

1783


What rules are followed by the search verb.

638


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1907


Which is not true about evaluate statement

1586


Write the code to count the sum of n natural numbers.

701


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

1958


What is the Purpose of POINTER Phrase in STRING command in COBOL?

721


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


i need a small 3d program using inline and outline.

1640


What are the cobol coding sheets?

664