Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
FTP commad to execute a program in the foreground mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: FTP commad to execute a program in the foreground mode
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

Moderator Team Head


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

PostPosted: Wed Feb 02, 2011 6:24 pm    Post subject: Reply to: FTP commad to execute a REXX program in the foregr
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    Post subject: Reply to: FTP commad to execute a program in the foreground
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Feb 02, 2011 6:44 pm    Post subject:
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: 658
Location: Whitby, ON, Canada

PostPosted: Wed Feb 02, 2011 7:35 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Feb 02, 2011 8:35 pm    Post subject: Reply to: FTP commad to execute a program in the foreground
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us