HP3000-L Archives

March 2001, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tony Summers <[log in to unmask]>
Reply To:
Tony Summers <[log in to unmask]>
Date:
Fri, 2 Mar 2001 09:24:07 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (4 lines)
Our solution was to put all the FTP code (run FTP;stdin=etc;) inside a Cobol subroutine and it can be called in a variety of ways (Put/Get/Mput etc) with the reassurance that the subroutine will always return a consistent set of error codes back to the calling program.  

My colleague generalised the subroutine so that one of the parameters passed to it was a name of the FTP connection - and the subroutine looked up the usernames and passwords from a database file.  If password sensitivity is an issue for you I would recommend avoiding the JCL route. 

ATOM RSS1 RSS2