Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Changing the file attribute of a file while sending via FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Prabaharan.D

New User


Joined: 14 Nov 2008
Posts: 3
Location: Chennai

PostPosted: Tue Mar 10, 2009 7:55 pm    Post subject: Changing the file attribute of a file while sending via FTP
Reply with quote

Hi All,

I am sending a dataset(file) via FTP in mainframe to another server.
I need to change the file attributes. How to change them during FTP'ing it?

Currently the file attribute are (-rw-r-----)
I need to change it to (-rw-r--r--) so that all users in that server will be able to read this file without any access issues.

I tried with CHMOD command but it does not worked while FTP from mainframe. Any other ways to do this so that file is made available ot read for all?

Please help.

Regards
Prabaharan.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue Mar 10, 2009 8:01 pm    Post subject:
Reply with quote

In FTP, try
Code:
SITE CHMOD 644 <filename>
Back to top
View user's profile Send private message
Prabaharan.D

New User


Joined: 14 Nov 2008
Posts: 3
Location: Chennai

PostPosted: Tue Mar 10, 2009 9:25 pm    Post subject: Reply to: Changing the file attribute of a file while sendin
Reply with quote

Thanks for your reply.

But still I the following error:
Any other idea please?
----------------------------------------------------------------------
SITE CHMODE 644 'GRP9.MWG.CB563A01.DELTESAE.XO'
EZA1701I >>> SITE CHMODE 644 'GRP9.MWG.CB563A01.DELTESAE.XO'
500 'SITE CHMODE 644 'GRP9.MWG.CB563A01.DELTESAE.XO'': command not understood.
EZA1460I Command:
----------------------------------------------------------------------
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue Mar 10, 2009 9:29 pm    Post subject:
Reply with quote

You spelled it wrong ... chmod does not have an E on the end.

If it doesn't like the SITE command, try QUOTE SITE ....
Back to top
View user's profile Send private message
Prabaharan.D

New User


Joined: 14 Nov 2008
Posts: 3
Location: Chennai

PostPosted: Thu Mar 12, 2009 3:24 pm    Post subject: Reply to: Changing the file attribute of a file while sendin
Reply with quote

Thanks very much.

It worked.

Great help you did. :)
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 12, 2009 4:56 pm    Post subject:
Reply with quote

Glad to hear it worked. icon_smile.gif
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us