Q
Problem solve Get help with specific problems with your technologies, process and projects.

Copying an externally described file

We are using the CPYTOIMPF command to copy a externally described file from an iSeries to an IFS folder. We are using the following command:

CPYTOIMPF FROMFILE(TRETTER/MSDSREQF) TOSTMF('/home/Testing_MSDS_FILES.TXT') STMFCODPAG(*PCASCII) RCDDLM(*CRLF) DTAFMT(*FIXED) STRDLM(*NONE) FLDDLM(' ')

The file is created and looks good. The problem is any other user -- other than the user who copied (ME) the file -- cannot open the TXT file. We are getting an 'Access Denied' error. Can you help us to figure out what the problem might be?


This is indeed an authority issue that can be resolved by one of the following:

1. Target your CPYTOIMPF command to copy the file to a directory with public authority (many times TMP is such a directory).

2. After the command CPYTOIMPF, issue the CHGAUT command as follows:

chgaut obj('/home/Testing_MSDS_FILES.TXT) USER(*PUBLIC) DTAAUT(*R)

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

The Best Web Links: Tips, tutorials and more.

Check out this Search400.com Featured Topic: Networking and the iSeries

PC/Windows connectivity expert Shahar Mor is available to answer your toughest networking questions. Ask Shahar a question or read his previously answered questions here.


This was last published in February 2004

Dig Deeper on FTP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...

Close