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     Execute REXX EXEC From WebFOCUS?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Execute REXX EXEC From WebFOCUS?
 Login/Join
 
Master
posted
Greetings,
I can execute a REXX EXEC
called 'FTPFLD', from a FOCUS for z/OS focexec, with the following command:
 EDIT UID.FOCUS.FOCEXEC(EXREXX)
Command ===>
000003 MVS ISPSTART CMD(FTPFLD)
When I try the same command
in WebFOCUS (our reporting
server is on z/OS), I receive
the following error:
  FOC1517) UNRECOGNIZED COMMAND MVS ISPSTART CMD(FTPFLD)
Does anyone have a idea if/how I can execute a REXX EXEC from WF?
(Where I am going with this,
is that my code is going to
create a PDF report
HOLD file, and then
FTP that file, via FTP commands
within the REXX EXEC.)
Regards,<br />Dave

This message has been edited. Last edited by: <Mabel>,
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
David,

If at first you don't succeed then turn it on its head.

Any chance of calling the WebFOCUS fex from the REXX routine, waiting for the output to be generated and then continue with the FTP?

Just a thought but shouldn't the "MVS" be preceded by a hyphen? as in -

-MVS ISPSTART CMD(FTPFLD)

??
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Don't know if it's appropriate for MVS, but under Unix and Linux you can pass commands to the OS by prefixing with an exclamation:

e.g.-
!ftp -ui < ./ftp/&FTPSCRIPT
 
Posts: 15 | Location: New York | Registered: April 02, 2004Report This Post
Master
posted Hide Post
Robin,

Thank you for your comment. What you are doing in Unix/Linux (invoking the OS command FTP) is exactly what I want to do in z/OS.

Now I just need to know:
1. If this is an option with WF for z/OS.
2. What the syntax might be.

Hopefully, somone on the forum can help me.

-Dave
 
Posts: 822 | Registered: April 23, 2003Report This Post
Master
posted Hide Post
Hi Tony,

Thank you for your suggestions.

My user is filling out a launch page in a self-service web application. They have a choice between seeing their PDF report within their browser, or having the PDF report being sent to a UNIX server via FTP. So, I don't have the option to have REXX call WF to do the report, and then FTP the report.

I looked up your suggested syntax possibility in the manual, and indeed there is a command -MVS op_system command.

So, I did try it, and while the FOC1517 went away, the REXX EXEC did not execute.

Thank you again, for your suggestions.

It must be something.

-Dave
 
Posts: 822 | Registered: April 23, 2003Report This Post
Gold member
posted Hide Post
Are you sure the library that contains the REXX pgm is allocated properly?
 
Posts: 90 | Location: Tinker AFB | Registered: June 03, 2003Report This Post
Master
posted Hide Post
Hi, I think my allocation, to the dataset where my REXX EXEC resides is OK.
I allocate SYSPROC directly before the call the the REXX EXEC:
DYNAM ALLOC DD 
SYSPROC DS UID.CLIST SHR REUSE -RUN
-TYPE READY TO INVOKE REXX
MVS ISPSTART CMD(FTPFLD)
-RUN-TYPE REXX COMPLETE
-EXIT 

In FOCUS for z/OS, SYSPROC is
where FOCUS looks for
REXX code. (This technique
works ok in
FOCUS for z/OS.)
At this point, I'm guessing I'll
have to do something different, in
WebFOCUS running under a z/OS
Reporting Server.
Thank you for your comment.
Regards,Dave

This message has been edited. Last edited by: <Mabel>,
 
Posts: 822 | Registered: April 23, 2003Report 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     Execute REXX EXEC From WebFOCUS?

Copyright © 1996-2020 Information Builders