[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: ftpapi - testing



Scott. One more quick question. Is there any special considerations for using the QCMDEXC to built the save file on the target box prior to executing the FTP_PUT





Jim Dorsett
Integration Manager
Healthcare Management Systems, Inc.
3102 West End Avenue
Suite 400
Nashville, Tennessee 37203
(615) 383-7300 Ext.2309

Fax (615) 386-6668
jdorsett@xxxxxxxxx
Check out our new Web site - http://www.hmstn.com

HMS welcomes your feedback on our service. If there are any areas we can improve, please email our Quality Service Department at mailto:hmsquality@xxxxxxxxxx If you receive STAR service, please email mailto:hmsstar@xxxxxxxxx and tell us about your experience. We appreciate your business.


CONFIDENTIALITY STATEMENT: The documents accompanying this transmission may contain confidential health information that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of these documents is strictly prohibited. If you have received this information in error, please notify the sender immediately and arrange for the return or destruction of these documents.
...


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, April 05, 2011 1:19 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: ftpapi - testing

hi Jim,

On 4/5/2011 11:57 AM, Jim Dorsett wrote:
>
> c            eval      file = 'jimdsavf'
> c            eval      files = 'jdorsett/' + %trimr(FILE)
[SNIP]
> c            if        FTP_put(sess:'files': 'files')<0

The way this is coded, you're trying to PUT a file that's named 'files'.
  This is no different from:

   eval   x = 'test';
   eval   myvar = x;

vs.

   eval   myvar = 'x';

When you put the string in quotes, it assigns a literal value. When you
leave the quotes off, it's treated as the name of a variable.

You're making the same mistake in your code.  You have this:

        if        FTP_put(sess:'files': 'files')<0

It should (presumably) be this:

        if        FTP_put(sess: files: files)<0

Hope that makes sense.   Also, FTPAPI currently only supports naming
convention 1.  It does not support the old-fashioned lib/obj naming
convention.  (I had no reason to support two naming conventions, since
namefmt 1 can address any object anywhere on the system.)

therefore, you should code it like this if you want to send a PF:

       eval      files = '/qsys.lib/jdorsett.lib/'
                       + %trimr(FILE) + '.file'

Good luck
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------