Focal Point
Execute REXX EXEC From WebFOCUS?

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

July 20, 2005, 09:08 PM
David Briars
Execute REXX EXEC From WebFOCUS?
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>,
July 21, 2005, 12:44 PM
Tony A
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)

??
July 21, 2005, 01:10 PM
Robin Lovell
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
July 21, 2005, 06:28 PM
David Briars
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
July 21, 2005, 06:39 PM
David Briars
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
July 22, 2005, 12:13 PM
Boogarweed
Are you sure the library that contains the REXX pgm is allocated properly?
July 22, 2005, 04:08 PM
David Briars
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>,