Modify a line in a text file

If you have a new question you’d like our support staff to post a response to, please visit our customer community, Data Security Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at

If you need an immediate response, please create a support ticket or contact our support team by email at [email protected].
2 posts Page 1 of 1


Posts: 4
Joined: Fri Aug 05, 2016 5:32 pm
Location: Birmingham, AL

Post by GBDickinson » Thu Dec 22, 2016 1:29 pm
I am creating a project to upload a file from our GoAnywhere server to an AS400 using the IBM iAccess client. As I understand it, in order to do this from a batch file you have to have a DTT file that specifies a number of parameters, including the name of the file to upload. i'm wondering if GoAnywhere has the ability to do this. Basically:

1.) Look through a given text file until you see the line that starts with "PCFile="
2.) Replace everything after the equals with a path and filename of my choosing

I then use this file to tell the client what to upload.

This is the first time I've had to do this, so my understanding of the process may be flawed :)


Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Tue Dec 27, 2016 9:44 am
GoAnywhere allows you to upload/download files to/from your AS/400 (iSeries) without the use of the iAccess client.

GAMFT seamlessly connects to your AS/400 for Command execution, as well as, Database access. (Both through resource definitions)

If you're wanting to just upload a file, you can utilize plain FTP to place the file (IFS or Library). You can also utilize the FileShare (through OpsNav) connect and just place the file into the IFS as if it's a local folder.

There are several ways this can happen through GAMFT.

And yes, if you want to continue going through the iAccess and use the DTT file to upload, you can call a local BAT file and execute that as well. :)
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1