Focal Point
[SOLVED] How to use a -TYPE statement with variables

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9021053103

October 02, 2008, 02:25 PM
webmeister
[SOLVED] How to use a -TYPE statement with variables
In a mainframe FOCEXEC, how do you display the contents of variables in a _TYPE statement?

For example, would this be the correct format?

-TYPE HERE IS MY VARIABLE: &VARIABLENAME

I just want to be able to see what some of my variables contain at different points in my FOCEXEC and will be putting this _TYPE to use.

Or.... is there a better or easier way to see what my variables contain within the running of a FOCEXEC?

Thanks in advance!

This message has been edited. Last edited by: Kerry,


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
October 02, 2008, 02:30 PM
GinnyJakes
What you have stated should work just fine. Have you tried it?

You can also put a -SET &ECHO=ALL; at the beginning of your program.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
October 02, 2008, 02:38 PM
j.gross
-? &
will list all the defined variables and their values


- Jack Gross
WF through 8.1.05
October 02, 2008, 03:12 PM
FrankDutch
If you want to see this in a running program, this only works in an HTML report.
If you get the report, you left click and ask to see the source.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

October 02, 2008, 05:32 PM
webmeister
Thank you to all who have responded! Frank, is that a mainframe FOCUS thing? Or is that WebFocus? I don't recall seeing that mouse clicks work on the mainframe as such.... if I am mistaken, please let me kow!


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
October 02, 2008, 05:39 PM
GinnyJakes
Use what I told you to do. That's all we had in the olden days.

There is also TOE or Terminal Operator Environment if that is still around.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
October 03, 2008, 04:36 AM
FrankDutch
It's Webfocus

If you only have mainframe, you should put in some exits I think before you get the real report.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

October 03, 2008, 10:29 AM
webmeister
Ginny, thanks.... that's exactly what I used and it worked great. It's been a real killer, since prior to my current job it had been close to 10 years since I used FOCUS....the rutiness rears its ugly head sometimes.

Frank, a quote from my original posting in this thread:
quote:
In a mainframe FOCEXEC, how do you display the contents of variables in a _TYPE statement?


and a question for you - what would putting in some exits do for my original question?


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO