Focal Point
is there system varible for Scheduleid , packetid or taskid ?

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

April 03, 2012, 05:03 PM
FOCUS393
is there system varible for Scheduleid , packetid or taskid ?
Hi , all

I am trying to update ASVALUE column in BOTTASK webfocus table before the job is being executed
so I was looking if there is any system varible for Scheduleid , packetid or taskid ? so that I can use it and update the table
April 04, 2012, 10:20 AM
ABT
Are you trying to dynamically update the name of the file being sent to be unique (say, with a date)?

I think that the way RC works, these values are already read into memory when the task executes and therefore are "locked in" by the time you want to update them.

EDAMAIL is another way to send mail from FEX and can handle many dynamic attributes. See the thread discussions on it.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
April 05, 2012, 06:58 AM
ABT
check out this article: http://www.google.com/url?sa=t...TPIM4SmHCO9Q&cad=rja

it explains creating a ReportCaster job via a fex. maybe this will help you.

-ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
April 05, 2012, 12:20 PM
FOCUS393
Hi ABT

yeah trying to dynamically update the name of the file being sent to be unique with a date

But what I read is that there is option in the Report caster scheduler where you can select pre processing procedure when you click the advanced procedure , so that I can update the name of the file before actual procedure is executed before even the file name brought in to memory

But I found those variables
&DSTSCHEDID
&DSTPACKETID
&DSTTASKID

but the problem is when use these system variable I am getting some error in the pre processing procedure it self the error is

A VALUE IS MISSING FOR: &DSTSCHEDID
BTP1020 A VALUE IS MISSING FOR: &DSTPACKETID

my question is why WF is not recognizing system varaibles


WebFOCUS 7.6
Windows, All Outputs
April 05, 2012, 01:35 PM
ABT
can you post your code? and are you running this test in ReportCaster or as a standalone fex in MRE?


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
April 05, 2012, 01:46 PM
FOCUS393
Thank you for your reply

No I am running this in report caster as pre proc fex , orginal task is another report whose file name should be updated



-DEFAULT &vRcScheduleId = '&DSTSCHEDID.EVAL';
-DEFAULT &vPacketID = '&DSTPACKETID.EVAL;
-DEFAULT &vTaskID = '&DSTTASKID.EVAL';


ENGINE SQLMSS SET DEFAULT_CONNECTION con

ENGINE SQLMSS SET PASSRECS ON


SQL SQLMSS


update [WebFocus].[dbo].[BOTTASK]
set [ASVALUE] = 'something..'


WHERE TASKID = '&vTaskID.EVAL' and packetid = '&vPacketID.EVAL'

END

-RUN

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


WebFOCUS 7.6
Windows, All Outputs