IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Changing the file attribute of a file while sending via FTP


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 10, 2009 8:01 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 10, 2009 9:29 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 12, 2009 4:56 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top