Where the target is one of the graphic- or numeric- oriented types, the external form output of the source data is assigned to the target as though it was external input. The following is an exception: Conversion between UTCTime and GeneralizedTime results in the insertion/stripping of the century value (insert 19 if yy greater than 50, otherwise insert 20).
Where the target is one of the transparent types, the local form of the source data is assigned to the target unchanged; that is, the local form of the source data becomes the local form of the target. However, the external outputs of the source and target can differ depending on their respective types. In either case, a type check results if the data is invalid for the source or target types.
Example: Graphic-oriented Source Type
&ASSIGN MDO=a.b.utc TYPE=GTIME DATA=19921012145000+1000
-* target type is UTCTime
&ASSIGN VARS=RESULT FROM MDO=a.b.utc
-* returns &RESULT = 921012145000+1000
&ASSIGN MDO=a.b.num DATA=0123
-* source type is NumericString
&ASSIGN VARS=RESULT FROM MDO=a.b.num TYPE=REAL
-* output type is REAL
-* returns &RESULT = +.123000000000000E+03
&ASSIGN MDO=a.b.graph DATA=ABCD
-* source type is GraphicString
&ASSIGN MDO=a.b.hex FROM MDO=a.b.graph
-* target type is HEX STRING
&ASSIGN VARS=RESULT FROM MDO=a.b.hex
-* returns &RESULT = C1C2C3C4
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |