PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

TFRCTL -------

View previous topic View next topic Go down

TFRCTL -------

Post  maran on Mon Jul 27, 2009 8:23 pm

When we can't use TFRCTL?
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: TFRCTL -------

Post  maran on Mon Jul 27, 2009 8:24 pm

1: If we want the program remain in the call stack we don’t go for TFRCTL, because it removes the program from call stack and not return. Also this only possible in OPM program i.e only for CL not for CLLE.
Ex: PGMA (call PGMB) --> PGMB (TFRCTL PGMC) --> PGMC;
after end of PGMC the control return to PGMA instead of PGMB.
So TFRCTL should be applicable if that particular program called from another program only. This should not be very first calling program.

2: By the above example we are not able to pass a parameter directly from PGMB, the parameter must received from PGMA and then only we pass the same parameters to PGMC.
_________________
Regards,
Razuk.
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum