Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to add symbolic variables into .Bat file.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to add symbolic variables into .Bat file.
 Login/Join
 
Member
posted
Hi ALL,

We currently have a WLA(WORK LOAD AUTOMATION) schedule executing the following command in a .bat file:

E:\ibi\64bit\srv76\wfs\bin\edastart -x "EX E:\ibi\apps\REV_ACCTG\CA012-1N_dstrun.fex"

i want to add symbolic parameters to the second component,so can some one explain me the correct syntax on How the symbolic variables(var1=&symbolic1 var2=symbolic2) can be entered in a bat file.


WF 7610, WINDOWS
EXCEL/PDF/HTML
 
Posts: 17 | Registered: February 10, 2011Report This Post
Expert
posted Hide Post
You can supply valies to a BAT file with the % option, but I guess that you would have worked that out by looking at the edastart.bat file.


You should not use EX E:\ibi\apps\REV_ACCTG\CA012-1N_dstrun.fex, the EX command will not understand the windows path and name. You shoudl use EX fexname or EX appdir/fexname.

To pass a parameter to a fex, use EX {appdir/}fexname var1=var, var2=var, varn=var


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
I'm not quite sure what you mean by symbolic variables.
But the 'normal' way to run a fex like you do is for instance:
c:\ibi\srv76\wfs\bin\edastart -x "EX c:\ibi\apps\session\test.fex VAR1=something,VAR2=somethingElse"
The test.fex will be executed using the two parameters specified. This can be seen if you put the command '-? &' in the test.fex.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
quote:
the EX command will not understand the windows path and name

But it does ... at least that's what I just found out ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
quote:
But it does ... at least that's what I just found out ...


Thats interesting..

I'll have to try it out...


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Very interesting, can't find it in the documentation.

Be wary of using it.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Hi all,
thanx for the reply.

can you please specify if suppose i am getting the parameters from a excel file (some 100 parms) then i dont want to enter the parms manually.so can some one specify the method on how to link up the parm excel file to the .bat file.


WF 7610, WINDOWS
EXCEL/PDF/HTML
 
Posts: 17 | Registered: February 10, 2011Report This Post
Virtuoso
posted Hide Post
Maybe think up a way of storing those values in a file that is reachable by the server? You could even pass the location as a parameter to the proces ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Hi gamp,
could you please specify the syntax or any documentation i can refer to specify the location as i am pretty new to this batch files and scheduling..


WF 7610, WINDOWS
EXCEL/PDF/HTML
 
Posts: 17 | Registered: February 10, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to add symbolic variables into .Bat file.

Copyright © 1996-2020 Information Builders