How to retrieve web session variable in c/l program on Iseries?

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
stevec
Posts: 14
Joined: Sat Aug 06, 2016 12:50 am

How to retrieve web session variable in c/l program on Iseries?

Post by stevec » Thu Aug 18, 2016 7:14 am

How do I retrieve a web session variable name saved from a WAM on the iseries in a C/L program? Or if need be an RPG program.

MarkD
Posts: 627
Joined: Wed Dec 02, 2015 9:56 am

Re: How to retrieve web session variable in c/l program on Iseries?

Post by MarkD » Thu Aug 18, 2016 8:13 am

I might be misunderstanding the usage context here, so please ignore this if I have.

Presumably the WAM is on top of the call stack and it cannot simply pass as parameters?

Maybe you could create or update data area(s) in QTEMP to contain the value(s).

The WAM on top sets it up.
The called CL or RPG program retrieves it when required.
This is a common way to pass un-parametized information between programs in a call stack.

stevec
Posts: 14
Joined: Sat Aug 06, 2016 12:50 am

Re: How to retrieve web session variable in c/l program on Iseries?

Post by stevec » Thu Aug 18, 2016 8:26 am

That is the point I do NOT want to change hundreds of wams. I suppose I could use the log on wam to set something in lda.

Is there a way to access wam session variables in C/L or RPG?

Currently we have wams (hundreds of them) calling a library list (and other environment routine) . This is where I need access to the session variable.

Post Reply