On 2017-01-31, at 17:04, Hardee, Chuck wrote:
> In order to return a value from BPXWDYN to an Easytrieve caller, one must use
> the variable definition as follows:
>
> VARFIELD DC Y(L'VARVALUE)
> VARVALUE DC CLx('......')
>
> Where 'x' is large enough to contain the maximum value that can be returned.
> For example, a dataset name's max length is 44 characters so in this example,
> x would be 45.
>
> The keyword representing the value to be returned must start in position 1 of
> VARVALUE and must include a SPACE at the end of the keyword.
> For instance, if one wants the dataset name associated with an allocated
> DDname, then the VARVALUE would be coded as 'INRTDSN '.
>
That describes (some of) BPXWDYN's requirements. It makes no
presentation of whether Easytrieve supports return values in
CALL arguments, which is an uncommon practice. I believe it is
more commom to pass the address of a reply buffer rather than
expecting the reply to replace the argument string itself.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN