AS400 – FTP, compiling objects

335 pts.
Tags:
AS/400
AS/400 FTP
FTP
QDDSSRC
Hi I have .txt source files in my desktop,i need to copy those .txt files in AS400 machine as a member in QDDSSRC/TEST library.how can i ftp those source files and compile those objects? Pls explain the steps to do it. Thanks

Answer Wiki

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

CRTPF on the as400. Something like CRTPF QGPL/MYFTP RCDLEN(132)
do FTP from your PC to the AS400 (FTP ‘ipaddress of 400′
userprofile
password
bin
put pcfile QGPL/MYFTP
QUIT
*
On the 400, CPYF QGPL/MYFTP yourlib/QDDSSRC FMTOPT(*CVTSRC)

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

Or, you can do a

put [file].txt [library]/QDDSSRC.[member]

and put the source directly in the source file.

Discuss This Question: 11  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.

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
  • pdraebel
    Another route would be via IFS. Make a share to an IFS directory, copy the PC files over there. These are "Windows" operations. Once the files are on the IFS use CPYFRMSTMF command to copy to the Source File on iSeries.
    3,040 pointsBadges:
    report
  • TomLiotta
    It depends. To be certain, we need to know how your FTP server is configured and if any settings for your profile place you into a particular directory and which name-format is the default for you. The specific FTP commands might change with different settings. If you don't know what any configuration values are, you should copy/paste a FTP session here so we can see what happens when you try to FTP a file. Have you tried? What was the result? Do you have an actual problem? Tom
    125,585 pointsBadges:
    report
  • iiiiiiiiiiiii
    Hi Tom I have tried that option,but it is not working. Pls help me.
    335 pointsBadges:
    report
  • CharlieBrowne
    Are you able to connect with FTP? If not, you may have a firewall problem. If you can connect what happens when you try to do a put? You could be getting an authority issue.
    41,380 pointsBadges:
    report
  • iiiiiiiiiiiii
    yes charlie Iam getting like connection reset by peer.
    335 pointsBadges:
    report
  • TomLiotta
    I have tried that option... You tried what option? We need to see what was tried before we can see what might need to be changed. Different systems can have unique requirements. We can't know for certain what might work on your system; but if we see your example and the results from it, we can probably determine the right direction for you. Besides that, we have to be careful. Showing someone how to transfer source code to another system and then to compile it isn't always a good subject to discuss. In theory, no one should be doing that kind of work without already having some strong fundamentals. An example from you would be a small confirmation. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    If you need help in how to collect an example and how to post it, let us know. Tom
    125,585 pointsBadges:
    report
  • iiiiiiiiiiiii
    Hi Tom I have a file called ARCCSV.TXT on my desktop and i have created a file name QGPL/MYFTP. This is my commands which i have used. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:Documents and Settingsnsupriya>cd desktop C:Documents and SettingsnsupriyaDesktop>ftp 10.5.82.4 Connected to 10.5.82.4. 220-QTCP at FBC400. 220 Connection will close if idle more than 5 minutes. User (10.5.82.4:(none)): arcuser 331 Enter password. Password: 230 ARCUSER logged on. ftp> bin 200 Representation type is binary IMAGE. ftp> quote namefmt 1 500 Subcommand NAME not valid. ftp> put arccsve.txt qgpl/myftp 200 PORT subcommand request successful. 150 Sending file to member MYFTP in file MYFTP in library QGPL. Connection closed by remote host. I hope Client has not given permission to do FTP from other sources. Let me correct if my view is wrong. Thanks
    335 pointsBadges:
    report
  • TomLiotta
    ftp> bin If you are sending a text file, you shouldn't use BIN. ftp> quote namefmt 1 That should be:
    ftp> quote site namefmt 1
    Windows doesn't understand the NAMEFMT FTP command. If you don't say SITE, the command will only be sent to Windows. From the rest of the script, you don't need to send a NAMEFMT command in this script. Your connection is using NAMEFMT 1 by default. You sent an ASCII text file using BIN (binary). That stopped the ASCII encoding from being converted to EBCDIC. The data in QGPL/MYFTP would become unreadable. BIN tells FTP not to perform translation. Leave out the BIN and the QUOTE NAMEFMT 1 commands, and try it again. Tom
    125,585 pointsBadges:
    report
  • iiiiiiiiiiiii
    Hi Tom I will try this and let u know.
    335 pointsBadges:
    report
  • As400pgmmer
    Hi, Acutally i transfer 10,000 lines of sql scripts from Desktop to Iseries server.But when i try to ftp the notepad.txt file, All the lower case letters from notepad.txt file will be converted to upper case letters.Since java is using these scripts from front end and its also case sensitive. So it creates a huge issue always.Do we have any solution to overcome this
    305 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.

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