From: Glen C. <gco...@US...> - 1999-12-07 02:37:17
|
Jim, All is a special case. It should move repeating copies of the source to the target. This does not happen if the ALL modifier is not used. Just a note. The decimal point can be either to the left or to the right of significant digits. PIC 999V99 PIC VPPP999 PIV 999PPV -----Original Message----- From: tin...@so... [mailto:tin...@so...]On Behalf Of Noeth, Jim Sent: Monday, December 06, 1999 9:06 AM To: 'tin...@li...' Subject: [Tiny-cobol-users] Runtime Move Routine questions I am currently working on the run time routines that perform move related functions. I have run into a few situations that I would like input on. It appears that the decimals field of the fld_desc structure is being used as a boolean value to indicate whether or not there are digits to the right of the decimal point. If this field contained the number of digits to the right of the decimal point instead and an indicator was added to the structure as to whether or not this was a signed field, the runtime routines could be made much more efficient, as they would not have to decode the picture clause, except for editted fields. The 'all' field of the fld_desc structure (which is documented in the info section as occurs) is used to signify that the data associated with the field, when moved to another field will be repeated until the length of the receiving field is satisfied. Which definition is correct, or do we need both? How do we want to handle run time errors, such as moving non numeric data into a numeric field? Thanks, Jim Noeth |