Can we change the initial name format at a user level for a FTP session?

40 pts.
Tags:
AS/400
FTP
Can we change the initial name format at a user level for a FTP session? Any setting in the user profile or in JBOD? As currently, we can see its taking from defaults on CHGFTPA command.


Software/Hardware used:
ibmi
1

Answer Wiki

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

Can’t you use ftp commands interactively or in a script
NAMEFMT 0 (Libraries)
NAMEFMT 1 (IFS)

Discuss This Question: 5  Replies

 
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.
  • pdraebel
    Good Question, I would not know how you can do that. Maybe some LOCALE?
    7,545 pointsBadges:
    report
  • TheRealRaven
    The FTP server logon exit point provides the TCPL0200 exit point format . Within the application-specific information structure, the name format can be provided. The exit program can query the job user and set the value to match.

    You might simply create a table of exceptions. You'll set the default with CHGTCPA, then add 'exception' records for each user who should use the opposite setting. Or use any method that fits to supply the setting.
    34,465 pointsBadges:
    report
  • anaya1
    Thanks all for your reply.
    @TheRealRaven : Can you please elaborate me more on the solution provided by you.
    How can i create a table of exceptions. Thanks.
    40 pointsBadges:
    report
  • TheRealRaven
    Do it any way you choose. You might use SQL with a CREATE TABLE statement, or you might build some DDS and compile it with CRTPF or you might populate a user index or...?

    You write the exit program. So you can have your program read any file or table or anything you want to check to see if the job's user is in it or not.

    Search the Information Center for "ftp exit program" to see an example of coding one in CL. You can code in any language of your choice.

    If you code a program and can't make it work as you need, you can open a new question back here. Post the code, and we'll see how it might be fixed.
    34,465 pointsBadges:
    report
  • anaya1
    Thanks much for this info @TheRealRaven.
    40 pointsBadges:
    report

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.

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

Following

Share this item with your network: