Janet,
I'm not sure, but I think you may be confused about the parameter descriptors on the ENTRY statement. The descriptors do not limit the parameters passed, but rather they cause any parameters to be converted (if required) to dummy variables which match the description on the ENTRY statement. This is one of the "features" of PL/I...you can write a single subroutine that handles many different types of numeric data passed to it. (This is not unlike numeric overloading in Java, but the PL/I compiler does it for you.). For example : DCL MySub ENTRY EXTERNAL (FIXED BIN(15)); DCL x FLOAT (10); DCL y FIXED BIN (15); x = 2.6532491e2; y = MySub(x); The 2.653249e3 is converted to 265 and passed to MySub and the result of MySub's calculation put into y. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
