+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22

Thread: Play Time = Productive Time?

  1. #1

    Default Play Time = Productive Time?

    I wrote a system on the iseries that allows our QC operators to measure various physical dimensions for our parts. In fact every part has different dimension measuring requirements and acceptable limits, everything is control file driven. Once the test data is recorded, the data is stored in DB2, and we generate statistical reports such as histograms and control charts. The software that does the charting is a PC based tool that uses ODBC. The way we tell the PC tool what to chart is by generating a complex XML document. So cgidev2 was in fact a life saver that made generating the xml file much easier.

  2. #2

    Default Play Time = Productive Time?


  3. #3

    Default Play Time = Productive Time?

    My apologies. The links should work now. Victoria Mack, Executive Editor

  4. #4
    Guest.Visitor Guest

    Default Play Time = Productive Time?

    Hi Jon, Should you wrap the XML character field data in an Encode2()? After all, I've been thinking about creating a product number in our system that is called '<>&". Thanks for the article. ) Chris

  5. #5
    Guest.Visitor Guest

    Default Play Time = Productive Time?

    Greetings, Jon! After attending a few of your sessions at COMMON this Spring in Anaheim, I decided to use CGIDEV2 and Scott Klement's HTTPAPI in our shop's XML project. (Since we're still at V5R2, we're unable to utilize the XML-abilities of RPGIV available in V5R4.) We needed to build an XML file, put it into a SOAP wrapper and send it to the Medical Information Bureau (MIB)--then parse the response from the MIB and print the relevant data for our customer. CGIDEV2 helped tremendously! Our template contained the SOAP wrapper as well as the XML, and writing the file to the IFS was a piece of cake. HTTPAPI then aided the sending of the XML file via an HTTP POST, and the parsing of the response. It's a beautiful thing. Thanks so much for bringing it to our attention!

  6. #6
    Guest.Visitor Guest

    Default Play Time = Productive Time?

    kgibson, I did something very similar. My problem was that some of the variables in the /COPY books from CGIDEV2 and LIBHTTP are named the same, so I got compiler errors. I had to break that logic up into separate programs. This was only a minor inconvenience, for the end result. Chris

  7. #7

    Default Play Time = Productive Time?

    Hi Chris, Yes - if you need to include characters that have specific meaning in XML in the data then it should be encoded. I debated whether to include this information in the article, but it can get complex quickly and I decided it was better to not confuse the issue at this point. I do intend to write a follow up a some point in the future which will cover this topic. If I have time later I'll dig out some references to threads in various forums that discuss this topic. Glad you liked the article.

  8. #8

    Default Play Time = Productive Time?

    Wow - that's terrific to hear. It really is a great approach - particularly if the "shape" of the XML document is likely to change in the future. You can often just get away with changing the template. Good to hear that Scott's terrific work came in handy for you as well. Thanks for writing.

  9. #9

    Default Play Time = Productive Time?

    Hi Chris, It is one of the limitations of the RPG /COPY that you have no option to change the names in a COPY member as you can in COBOL for example. I'm a bit surprised though since I know Scott uses naming conventions that are designed to avoid such collisions. What variables in particular were involved? If they relate to common structures such as USEC then you could probably avoid the problem by using conditional compilation directives to wrap those portions of the code so that they are not included if the other version is already present.

  10. #10
    Guest.Visitor Guest

    Default Play Time = Productive Time?

    Jon, CGIDEV2/QRPGLESRC,PrototypeB and LIBHTTP/QRPGLESRC,IFSIO_H have lots of IFS root system type collisions. (O_RDONLY, O_WRONLY, O_RDWR, read, write, etc). I didn't see a way to avoid it using DEFINED. If you can suggest a way, that would be great. Thanks. Chris

+ Reply to Thread
Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. "Play Time = Productive Time? "
    By gio.cot in forum RPG
    Replies: 2
    Last Post: 03-14-2009, 05:13 PM
  2. The Value of Time
    By Guest.Visitor in forum Commentary
    Replies: 5
    Last Post: 02-07-2007, 01:52 PM
  3. Time Drift ? Time Synchronization
    By dmjae2004@yahoo.com in forum General
    Replies: 5
    Last Post: 05-24-2004, 02:29 PM
  4. Time lag in ADM?
    By Guest.Visitor in forum Application Software
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM
  5. Hey !! What Time is it??
    By Guest.Visitor in forum Networking
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

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