Hi All,
Can anyone tell me how we can MOVE value of a X(19)
variable to a S9(17) COMP-3 variable?
Answer with an Example will be of great help.

Answer Posted / ram.g

you can try with redefine....

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the variable block file formats from cobol programs

696


what is amode(24), amode(31), rmode(24) and rmode(any)?

707


how do you reference the rrds file formats from cobol programs

807


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5708


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?

901






How are the next sentence and continue different from each other?

775


What is the usage of comp fields in cobol?

666


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

654


Explain about different table spaces.

656


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

2232


How to print 10 to 1 if the input have only 10 digit number?

824


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6849


Write a cobol program making use of the redefine clause.

743


Mention the guidelines to write a structured cobol program?

628


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

692