> -----Original Message-----
> From: IBM Mainframe Discussion List
> [mailto:[email protected]] On Behalf Of Donald Russell
> Sent: Tuesday, January 05, 2010 5:05 PM
> To: [email protected]
> Subject: Re: PCI and Auditors perceptions thereof
>
> Is USS the same thing as "OMVS"? We have multiple MVS systems
> but I only
> have USS (OMVS) access on one of them. I'm told USS is not
> available on the
> others. Maybe there's some terminology issues...
>
> What I'd like to do is invoke sftp from a rexx clist... right
> now I "address
> mvs FTP ..." trying to use FTPS.
> If I can do something similar but invoked SFTP, and that
> works on all my MVS
> systems, I'm a happy camper. :-)
>
> (The reason I do this from a clist is because some logic
> there determines
> what the remote name should be, and whether an additional
> file should also
> be transferred)
>
> Where can I read about invoking sftp as a batch process?
>
> Cheers,
Many people use USS to mean "z/OS UNIX System Services". It is an unapproved
acronym.
Why not use BPXWUNIX to run a UNIX command in REXX?
/* REXX */
RC=SYSCALLS('ON')
SAY RC
stdin.0=0
stdout.0=0
stderr.0=0
call bpxwunix 'ls -l',,stdout.
DO I=1 TO STDOUT.0
SAY STDOUT.I
END
In your case, put the sftp command in the stdin. variables. I don't know them
myself, but something like:
stdin.1='first command'
stdin.2='second command'
stdin.3='some other command with operands'
stdin.4='last command'
stdin.0=4
call bpxwunix 'sftp ..options..',stdin.,stdout.,stderr.
DO I=1 TO STDOUT.0
SAY STDOUT.I
END
--
John McKown
Systems Engineer IV
IT
Administrative Services Group
HealthMarkets(r)
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
[email protected] * www.HealthMarkets.com
Confidentiality Notice: This e-mail message may contain confidential or
proprietary information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message.
HealthMarkets(r) is the brand name for products underwritten and issued by the
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The
MEGA Life and Health Insurance Company.SM
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html