Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8167
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: 8167
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: 8167
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 sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us