I am having touble working with packed data fields. I am writing a simple file maintenance program. This program uses a program described file that has a packed field in it. When I try to change the value of this field from say 600 to 500, it gives me a data decimal error. It is blowing up when I write this change to the file. Here are my I and O specs (spacing not correct)
I P 292 293 0DCTY
O DCTY 293P
And in my progam I do a simple MOVE and Except
MOVE val1 val2
Except
How do you write fields to files in a packed format?
Thanks, Jane22
I P 292 293 0DCTY
O DCTY 293P
And in my progam I do a simple MOVE and Except
MOVE val1 val2
Except
How do you write fields to files in a packed format?
Thanks, Jane22
Comment