Do the chmod in the GET job in a separate UNIX step after the sftp step.

another possibility in the sftp step itself is to use the "lumask" command. I 
can't test this, so I can't guarantee it works.

lumask 022
get remote.file

Or perhaps:

lcd /local/zos/directory/for/file
get remote.file
!chmod 644 remote.file

The ! executes the "chmod 644 remote.file" in a local shell on the z/OS system. 
Without the !, the chmod is sent to the remote system.

--
John McKown 

Systems Engineer IV

IT

 

Administrative Services Group

 

HealthMarkets(r)

 

9151 Boulevard 26 * N. Richland Hills * TX 76010

(817) 255-3225 phone * (817)-691-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

 

> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of Leonard Sasso
> Sent: Wednesday, November 10, 2010 4:43 PM
> To: [email protected]
> Subject: Re: File Permissions Question
> 
> It is trying to change permissions on the file at the 
> external site, not 
> the HFS system
> 
> sftp> chmod 644 RosterException_20101105.txt 
> Changing mode on 
> /C:/caqhroot/TestFTP/Outgoing/RosterException_20101105.txt
> 
> 
> Thank You.
> 
> Len Sasso
> 
> 
> 
> RDC Operations - Systems Administrator
> CSC
> Information Technology Infrastructure Services (ITIS)
> | p: 518.257-4209 | m: 518.894-0879 | f: 518.257-4300 | 
> [email protected] | 
> www.csc.com
> 
> This is a PRIVATE message. If you are not the intended 
> recipient, please 
> delete without copying and kindly advise us by e-mail of the 
> mistake in 
> delivery. 
> NOTE: Regardless of content, this e-mail shall not operate to 
> bind CSC to 
> any order or other contract unless pursuant to explicit 
> written agreement 
> or government initiative expressly permitting the use of 
> e-mail for such 
> purpose.
> 
> 
> 
> From:
> Hal Merritt <[email protected]>
> To:
> [email protected]
> Date:
> 11/10/2010 01:48 PM
> Subject:
> Re: File Permissions Question
> 
> 
> 
> Try: 
> 
> cd /u/emedtest/nfstst/fsit/prov/caqh/20101105
> chmod 644 RosterException_20101105.txt 
> 
> 
> 
>  
> 
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On 
> Behalf Of Leonard Sasso
> Sent: Wednesday, November 10, 2010 12:42 PM
> To: [email protected]
> Subject: Re: File Permissions Question
> 
> I want to use the chmod command but the length of the 
> filename and and 
> path is too long. 
> 
> chmod 644 
> /u/emedtest/nfstst/fsit/prov/caqh/20101105/RosterException_201
> 01105.txt 
>  
> 
> What is the continuation character for the chmod command ? 
> 
> 
> Thank You.
> 
> Len Sasso
> 
> 
>  
> NOTICE: This electronic mail message and any files 
> transmitted with it are 
> intended
> exclusively for the individual or entity to which it is 
> addressed. The 
> message, 
> together with any attachment, may contain confidential and/or 
> privileged 
> information.
> Any unauthorized review, use, printing, saving, copying, 
> disclosure or 
> distribution 
> is strictly prohibited. If you have received this message in 
> error, please 
> 
> immediately advise the sender by reply email and delete all copies.
> 
> ----------------------------------------------------------------------
> 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
> 
> 
> 
> ----------------------------------------------------------------------
> 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
> 
> 

----------------------------------------------------------------------
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

Reply via email to