Page 1 of 1

Modify a line in a text file

Posted: Thu Dec 22, 2016 1:29 pm
by GBDickinson
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 :)

Re: Modify a line in a text file

Posted: Tue Dec 27, 2016 9:44 am
by Support_Rick
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. :)