Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] DSTRUN - RC 11
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] DSTRUN - RC 11
 Login/Join
 
Silver Member
posted
Hi

There has been a lot of threads with regards to DSTRUN, I have gone through them and not sure what i am doing wrong here. Request your help.

Running the below CODE Gives SUBERR as 9 - HTTP Read Error

-RUN
-SET &SUBERR = DSTRUN( 'CorpID', 7,
- 'Pwd' , 9,
- 'eadv001', 7,
- 'SysV8uTkUsPr',12,
- ' ',0,
- 3,
- 'Corpid',7,
- ' ', 0,
- ' ', 0,
- 'I4');

Running the below CODE Gives SUBERR as 11 - Servlet Error

-RUN
-SET &SUBERR = DSTRUN( 'CorpID', 7,
- 'Pwd' , 9,
- 'eadv001:1500', 7,
- 'SysV8uTkUsPr',12,
- ' ',0,
- 3,
- 'corpid',7,
- ' ', 0,
- ' ', 0,
- 'I4');

SysV8uTkUsPr is the schedule id of the report caster job. (Its a simple car file that has been disabled in RC). Would running this fex after having a SUBERR = 0 invoke the job in RC Straight away or there needs to be some code added before / after this.

Please let me know, what I am doing wrong.

Thank you,

Webfocus 7.7

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


7.7, Windows, HTML
 
Posts: 38 | Registered: December 30, 2011Reply With QuoteReport This Post
Virtuoso
posted Hide Post
There was a change under 7.7, refer to this documentation.

Basically in WebFOCUS release 77x and above, a FEX, using the DSTRUN subroutine, must explicitly specify the context root.
 
-SET &SUBERR=DSTRUN(
- 'username',7,
- 'password',7,
- 'server:port/ibi_apps:ibi_apps',29,
- 'sched_id',12,
- ' ',0,
- 3,
- 'owner',7,
- ' ',0,
- ' ',0,
- 'I4');

In this example, the third parameter explicitly specifies the context root, 'server:serverport/ibi_apps:ibi_apps' where the entry after the second colon ("ibi_apps") specifies the alias to be used.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
To supplement Alan's reply, the reason for the context change is that the "rcaster" context is no longer created.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5573 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Gold member
posted Hide Post
Also, I noticed that the lengths you specified in the DSTRUN parameters is not correct. e.g. you specified 'CorpID',7 whereas it should be 'CorpID',6
The same is true in some of the other parameters, especially in you second piece of code.
To answer your other questiopn, on successful submission (SUBERR=0), the schedule is invoked in RC right away, based on how often you have RC set up to check for pending jobs.


Diptesh
WF 7.1.7 - AIX, MVS
 
Posts: 79 | Location: Warren, NJ, USA | Registered: October 25, 2006Reply With QuoteReport This Post
Silver Member
posted Hide Post
I Changed my code to this, Still No Success.

-SET &SUBERR=DSTRUN(
- 'username',7,
- 'password',7,
- 'entadh.abc.com:13000/ibi_apps:ibi_apps',39,
- 'sched_id',12,
- ' ',0,
- 3,
- 'username',7,
- ' ',0,
- ' ',0,
- 'I4');

It gives me 185 as &SUBERR. Any Idea if the Path is right ?

Alan / Tony - Can i request you to share a working example of the above code or Can you please correct the path.

'entadh.abc.com:13000/ibi_apps:ibi_apps'

Thank you,


7.7, Windows, HTML
 
Posts: 38 | Registered: December 30, 2011Reply With QuoteReport This Post
Virtuoso
posted Hide Post
you're off by one:

'entadh.abc.com:13000/ibi_apps:ibi_apps',39,        
*123456789.123456789.123456789.123456789.123456789.


The length is 38, and the 39th character (as perceived by DSTRUN) is random garbage.


Suggestion: Instead of counting characters, stuff the values in &vars, and use .LENGTH

-SET &username='whatever';
... and similarly for password, location, and sched id ...

-SET &SUBERR=DSTRUN(
- &username, &username.LENGTH,
... and similarly for all the value, length pairs
...
- 'I4');
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport This Post
Silver Member
posted Hide Post
Been trying for 2nd Day now. Good news is that its working. Smiler

Any changes to the path wont work.

-DEFAULT &path = 'abc:15000/ibi_apps:ibi_apps';
-DEFAULT &corp = 'corp';
-DEFAULT &pwd = ' ';
-DEFAULT &sch_id = 'Skz88Uqx5QCs';
-RUN
-SET &CALLRC = DSTRUN(&corp,corp.LENGTH,
- &pwd , &pwd.LENGTH,
- &path , &path.LENGTH,
- &sch_id , &sch_id.LENGTH,
- ' ' , 0,
- 3 ,
- &corp , &corp.LENGTH,
- ' ' , 0,
- ' ' , 0,
- 'I4');
-RUN

Thank you Alan, Tony, Diptesh and j.gross


7.7, Windows, HTML
 
Posts: 38 | Registered: December 30, 2011Reply With QuoteReport This Post
Silver Member
posted Hide Post
The Second part to the problem was sending out a mail to the user who submits the DSTRUN Request.
I will be trying to use the dynamic list to capture the MRUser and sending out the mail.

With what I know, with DSTRUN we can only pass the parameters,

Are there anyways to pass the dynamic mail to / include these parameters in the subject line / body of the RC Job.

Thank you,


7.7, Windows, HTML
 
Posts: 38 | Registered: December 30, 2011Reply With QuoteReport This Post
Platinum Member
posted Hide Post
You might could use DSTBULK to build a dynamic list. Build it first and have the schedule use it.

Crystal


Webfocus 8.0.7 on Windows
 
Posts: 176 | Location: Ohio | Registered: October 26, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] DSTRUN - RC 11

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.