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 / vamsi
First of all s9(17) comp-3 will occupy 9 bytes and X(19) has
19 bytes of memory.
When we move the text value to an comp-3 field, we will get
Soc7 error. We cannot move alpha values to numeric fields.
If the X(17) contain numeric values then we can move this
field to s(17) comp-3 field and we can move only 9 bytes
other data will be trucated.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the LINKAGE SECTION used in COBOL?
What are the different types of condition in cobol and write their forms.
What is rmode(any) ?
What is an in line perform? When would you use it? Anything else you wish to say about it.
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
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is the use of intialize verb?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How do u write test cases?
Whats the difference between search & search ALL?
Why did you choose to work with ibm mainframe cobol programming?
Why occurs cannot be used in 01 level in COBOL?