CPYTOPCD filename length limitation

5 pts.
Tags:
AS/400
Database
DB2
Development
Oracle
Platform Issues
Hi all, Am aware of the limitation of the filename (filename.ext) for CPYTOPCD command. eg: 12345678.123 (8chars and ext 3chars). Is there any command that I could use to have my filename as follows: AA12345678.txt or AA12345678 ? Or maybe additional step that I could insert into my CL after the CPYTOPCD command ? Appreciate your expert advice. Thank you in advance.

Answer Wiki

Thanks. We'll let you know when a new response is added.

The limit of up to 8 chars and up to 3 chars extension applies to all folders and documents in QDLS. This is the only area of the IFS that the CPYTOPCD command will access.
You can use COPYTOSTMF to copy a database file to other areas of the IFS as an ASCII text file, where these limitations do not apply.

========================================================

Patient: Doctor! It hurts when I do “this”. Can you help me?
Doctor: Sure — don’t do “this”.

That is, don’t use the /QDLS file system if its restrictions aren’t to your liking. Use a file system that allows longer names. Don’t use CPYTOPCD at all since it explicitly operates on /QDLS objects. Use CPYTOSTMF and stay away from /QDLS altogether.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following