LDA Object for Using as PDA

Dear Natural Experts,

It might be a silly question but I am confused and do not have system write now to try it.

I have defined my Variables in an LDA object say LDA1 now I have to pass this complete LDA to a subprogram to be used as PDA.
Can I use same LDA object LDA1 in “DEFINE DATA LOCAL” of my Program and in “DEFINE DATA PARAMETER” of my Subprogram?

Please advice . Thanks
Shashank

You can’t use an LDA as a PDA but you can use a PDA as an LDA.

PARAMETER USING lda    /* <-- invalid
LOCAL USING pda  /* <-- valid

You mean I can use the same Object defined as PDA in my Main Program and Subprogram/Subroutine?

Yes. the calling routine will contain

LOCAL USING pda

and the subprogram/subroutine will have

PARAMETER USING pda