Focal Point
[CLOSED] DSTRUN - RC 11

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

April 12, 2012, 01:25 PM
Gun
[CLOSED] DSTRUN - RC 11
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
April 13, 2012, 02:42 AM
Alan B
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
April 13, 2012, 07:26 AM
Tony A
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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
April 13, 2012, 09:00 AM
Diptesh Patel
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
April 16, 2012, 02:19 PM
Gun
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
April 16, 2012, 03:21 PM
j.gross
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');
April 17, 2012, 04:16 AM
Gun
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
April 19, 2012, 02:51 PM
Gun
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
April 20, 2012, 07:59 AM
CLH
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