View previous topic :: View next topic
|
Author |
Message |
pmvino
New User
Joined: 22 Aug 2008 Posts: 20 Location: india
|
|
|
|
Hi,
I have a program in Z/os system. I have to execute that program from Windows comand prompt.
I'm able to submit a job from FTP command ( Filetype = JES) to JES.
But my program has a Display panel command. The panel is not displayed while running the program in batch.
Please help me to know FTP command for executing a program in foreground mode. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Not possible. Didn't we already go over all of this in your other topic? |
|
Back to top |
|
|
pmvino
New User
Joined: 22 Aug 2008 Posts: 20 Location: india
|
|
|
|
OK....
Can you please tell me whether is there any other ways to run a rexx program in foreground mode apart from putting EX before the member name in Z/Os |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Please help me to know FTP command for executing a program in foreground mode. |
There is no such thing. FTP is used to transfer files from one system to another system. That is all it does, period.
It may be possible to do what you want but I suspect that if it is possible then it requires some specialized software (and mainframe software is never cheap). I have never found a reason to run a z/OS program from a Windows machine directly, though, so I have never researched what options are available. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
If you use ISPF's Workstation Agent (WSA) you can initiate Windows commands from the mainframe (via WSCMD ISPF service) but I don't know of any way to do the reverse. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
FTP is used to transfer files from one system to another system. That is all it does, period. |
You can use FTP to submit jobs and to retrieve the job output. From IBM TCP/IP for MVS: User's Guide,
SC31-7136-02
3. After you have entered your user ID and password, specify that you
want to interface to JES with a site parameter by entering the
following:
SITE FILETYPE=JES
4. To submit the JCL file you have created, enter the following:
PUT filename.filetype
5. The JCL is then submitted to the JES internal reader and waits for an
initiator to start the job. The job is submitted under the user ID
that you used when you logged on to the system.
And use GET to retrieve job output.
Quote: |
The panel is not displayed while running the program in batch. |
Even though you may be logged on to TSO and you submit a batch job with the same userid, it runs in a different address space and there is no way for you to link the two in the way that you want.
I suggest that you change your rexx program. Check for SysVar('SysEnv') = 'FORE' and display your panel. If not FORE, then supply your information through other means, perhaps from VGETing from profile or from reading from a file. |
|
Back to top |
|
|
|