MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP JCL to JES for processing

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
Deaf Smith
Beginner


Joined: 22 Jul 2008
Posts: 18
Topics: 12

PostPosted: Mon Dec 08, 2008 11:37 am    Post subject: FTP JCL to JES for processing Reply with quote

Here is my problem. We intend for users to be able to run their own batch reports via FTP from their PC.

The idea is to use a language that allows them to, without knowing, construct their own JCL for the Cobol or EzTreve report, with whatever parameters they need, like date ranges, and the application constuct the JCL with the parameters in the correct position.

Once they exit the application it can then FTP the JCL using 'quote site filetype=jes' to let the mainframe know it's to go to the JES.

Now the question...

What application would work best. ASP.NET, VB, other??, or can this be done with the Microsoft tools that come with most PCs?

Thanks!
_________________
Deaf
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Dec 08, 2008 6:38 pm    Post subject: Reply with quote

Any tools should do. You can use a simple bat (or .cmd) file from windows.

The problem is that the user's password must be stored somewhere on the disk and that may be a security issue. For example, if you use a .cmd file like
Code:
@echo off
rem submit a job and display the output
rem Parameters: user password jclfile
(
echo open your.mvs.ip.address
echo user %1 %2
echo ascii
echo quote site filetype=jes
echo put %3
echo quit
) >f1
ftp -n  -s:f1 |find "It is known to JES as" >f2

FOR /F "usebackq tokens=7" %%i IN (`type f2`) DO set jobname=%%i

(
echo open your.mvs.ip.address
echo user %1 %2
echo ascii
echo quote site filetype=jes
echo get %jobname%
echo quit
) | ftp -n >nul

del f1

type %jobname%

you still need to pass in the userid and password and those need to be stored somewhere. In this case, it is also stored in a temporary file which, although deleted, will still be recoverable from the disk (of course you an use something like sdelete to wipe it off though)

Obviously, this example is NOT an industrial strength solution since there is no error checking anywhere, but it should illustrate the simplicity of invoking FTP from anywhere if you want to use the built in (windows) version.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group