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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
DSTRUN RC=11
 Login/Join
 
Gold member
posted
I have a business need to provide RUNDATE in the Subject Line of outgoing e-amil being distributed by ReportCaster. Schedules have been set up to run each report, and the Subject Line is defined as:

Report for '%BURST' on '&RUNDATE'

I have defined &RUNDATE as a parameter.

To avoid having to manually change the value for &RUNDATE before submitting the job, I have created another focexec that sets the value for &RUNDATE and calls DSTRUN to submit the job while passing &RUNDATE as a parameter.

So I have 2 schedules and 2 focexecs: the first job sets &RUNDATE and submits the 2nd job passing &RUNDATE as a parameter and making it available to ReportCaster.

This approach works beautifully in Development; when I move everything into Production I get Return Code = 11. Not much help there.

I can also create similar circumstances in Production (by cloning schedules and modifying them so they do not send out reports) and it runs just fine. I'm using the same userid/password combinations as the Production jobs.

Code to call DSTRUN:

-SET &DSTRUN =
- DSTRUN(
- '&RCUSER.EVAL',&RCUSER_LENGTH.EVAL,
- '&RCPASS.EVAL',&RCPASS_LENGTH.EVAL,
- '&RCSERVER.EVAL',&RCSERVER_LENGTH.EVAL,
- '&SCHEDULE.EVAL',12,
- '',0,
- 3,
- '&RCOWNER.EVAL',&RCOWNER_LENGTH,
- '&VALUE.EVAL',
- &VALUE_LENGTH.EVAL,
- '',0,
- 'I4' );

-----------------------------------
&RCUSER = 'admin'
&RCPASS = ''
&RCOWNER = 'admin'
&VALUE = 'RUNDATE=08/19/08'

Lengths are all calculated correctly.

-----------------------------------

I signed into ReportCaster as Admin and created the appropriate schedules in the Admin folder.

The Execution ID is a generic runtime userid and is different from &RCUSER and &RCOWNER.

Anyone have any ideas?

Alan


WF 7.6.6, FOCUS 7.6.4, IBM MVS/TSO, Windows 2003 Server, DB2, MSSQL
 
Posts: 65 | Location: Chicago, IL | Registered: July 26, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders