+ Reply to Thread
Results 1 to 5 of 5

Thread: QECCVTEW - Trying to Utilize this API.

  1. #1

    Default QECCVTEW - Trying to Utilize this API.

    Kmellown wrote: > > I have an issue with some of the Responses I'm receiving from this API. There are very few examples of this API anywhere in TechnoSpace.... When I pass it an Edit Word with a Currency symbol in it I receive back a bogus Edited number. I am sure that I am not setting something up correct but I have yet to determine the problem. > When I pass it Edit Word (' , , $0. ') and a value of 123456. an 11,2 Zoned Numeric. I get back $12,34.56 if I take the '$' out of the Edit word (' , , 0. ') I get back 1,234.56 > > It appears that I have length issue with the API???? > > If anyone has dealt with this API before and Has had sucess I would be interested in any input you might be willing to share. The '$' counts as one of the replacement characters. Instead of inserting the '$' into the working edit word, you should replace a blank with the '$'. I think the API handles edit words pretty much the same as RPG does; you could look at the RPG documentation for edit words. There's an example that shows an edit word of 'bb,bbb,b$0.bb' with an input value of 000123456 yielding a value of 'bbbb$1,234.56' (where 'b' means blank).

  2. #2

    Default QECCVTEW - Trying to Utilize this API.

    I am trying to replace a template version of our check writer. We build output specs based on a file entry with field names and lengths. This leads to a recompile every time a change is made. Looking to utilize this API so I can read the info out of the file and not build output specs. the problem with the API is that the Edit words appears as they are handled differently in an RPG compile Program versus the called API. The Edit word 'bbbb,bbb,b$0.bb' in RPG yields $1,234.56 when called with API it yields $12,34.00 I changed the edit word to 'bbb,bbb,bb$0.bb' and the API passed back a correct expression $1,234.00 I took a space from the front of the edit word and added a space in the hundreths position. My intentions were to use the same edit words in our file without having to convert them so they will work with the API. It is entirely possible that I am not utilizing the API and all of it's parameters corretly. I have read everything I can find on it and have tried many different combinations of the Lengths. Thank you for taking the time to respond. I will keep looking at it and at the very least I can make it work by changing the Edit words.

  3. #3

    Default QECCVTEW - Trying to Utilize this API.

    Is this the KMELLOWN that I know? Joe

  4. #4

    Default QECCVTEW - Trying to Utilize this API.

    I have an issue with some of the Responses I'm receiving from this API. There are very few examples of this API anywhere in TechnoSpace.... When I pass it an Edit Word with a Currency symbol in it I receive back a bogus Edited number. I am sure that I am not setting something up correct but I have yet to determine the problem. When I pass it Edit Word (' , , $0. ') and a value of 123456. an 11,2 Zoned Numeric. I get back $12,34.56 if I take the '$' out of the Edit word (' , , 0. ') I get back 1,234.56 It appears that I have length issue with the API???? If anyone has dealt with this API before and Has had sucess I would be interested in any input you might be willing to share.

  5. #5

    Default QECCVTEW - Trying to Utilize this API.

    Yeah! It's little ol me. Shoot me an e-mail sometime. I'm Trying to get this API working.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts