Frank Swarbrick wrote:
For PL/I experts: Can a PL/I procedure declared with a CHARACTER(*) VARYING
parm be called passing a CHARACTER VARYINGZ or CHARACTER VARYING4 argument?
Thanks, Frank
Those are different data attributes, but the answer is "kinda yes".
The VARYINGZ and VARYING4 value should be converted to a VARYING string
(in a compiler-allocated temporary variable) and that temporary would be
passed.
For example, you can pass a FIXED BIN(31,0) to a procedure with a
CHARACTER(*) VARYING.
The integer would be converted and passed...
At least - I believe that would be the proper semantics.
You might consider asking the question on comp.lang.pl1 as well; were more
seasoned PL/I skills than mine are available.
- Dave Rivers -
--
[email protected] Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN