Don't think you can do that. What I do is dynamically create the INPUT file for each request, using RPG. You can pass the file name and change date values to the rpg pgm and create the new put statement. hth, Phil --- "Ray, Adam" <firstname.lastname@example.org> wrote: > Good afternoon everyone. > I was wondering if it is possible to use CL > variables in a batch FTP > session. I need to transfer a file from our AS/400 > to one of our NT servers > without any user intervention. The file to be put on > the server is to be > named using the files last change date. So the PUT > command would look > something like this > put mylib/myfile.mymbr mmddyyyy.raw > > I know I can get the files change date using the CL > command RTVOBJD, > something like this: > RTVOBJD OBJ(MYLIB/MYFILE) OBJTYPE(*FILE) > CHGDATE(&CHGDATE) > And I know the FTP commands would be contained in a > source physical file. > > So can I use the CL variable &CHGDATE in the PUT > command contained in the > PF? My guess is it would look like this: > put mylib/myfile.mymbr &CHGDATE.raw > > Can you do that? If not, is there another way to do > this? Any input is > appreciated. > > > Adam Ray > Applications Programmer > Family Health Partners > Voice: 816-855-1822 > Fax: 816-855-1890 > Cell: 913-221-8685 > Email: email@example.com <mailto:firstname.lastname@example.org> > > > ATTACHMENT part 2 application/ms-tnef __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: email@example.com +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.