IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP commad to execute a program in the foreground mode


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pmvino

New User


Joined: 22 Aug 2008
Posts: 20
Location: india

PostPosted: Wed Feb 02, 2011 6:21 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Feb 02, 2011 6:24 pm
Reply with quote

Not possible. Didn't we already go over all of this in your other topic?
Back to top
View user's profile Send private message
pmvino

New User


Joined: 22 Aug 2008
Posts: 20
Location: india

PostPosted: Wed Feb 02, 2011 6:31 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Feb 02, 2011 6:44 pm
Reply with quote

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
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Wed Feb 02, 2011 7:35 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Feb 02, 2011 8:35 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Using API Gateway from CICS program CICS 0
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top