+ Reply to Thread
Results 1 to 2 of 2

Thread: using PCML

  1. Default using PCML

    I'm trying to pass an array from my COBOL program back to my java program using PCML. This is the error message I'm getting. ---------- java run ---------- Beginning PCML Code com.ibm.as400.data.ParseException: File 'lrs706pcml' failed to parse. Stopping after fatal error: The content of elements must consist of well-formed character data or markup. 1 error detected parsing pcml document. A parse error occurred. com.ibm.as400.data.PcmlException: A parse error occurred. com.ibm.as400.data.ProgramCallDocument.loadSourceP cmlDocument(ProgramCallDocument.java:1037) com.ibm.as400.data.ProgramCallDocument.loadPcmlDoc ument(ProgramCallDocument.java:934) com.ibm.as400.data.ProgramCallDocument.(ProgramCallDocument.java:97) Lrs706i.(Lrs706i.java:31) Lrs706i.main(Lrs706i.java:81)[*]*** call to lrs706i failed. **** Normal Termination Output completed (3 cc consumed). I want to know if there is some sample code that I could look at to see what I'm doing wrong. jfr

  2. #2
    Guest.Visitor Guest

    Default using PCML

    This is an XML issue. PCML is based on XML standards so you must use proper XML syntax when designing your PCML documents. You may be missing a tag, you may have a duplicate begin or end tag, a tag could be out of sequence or inproperly nested, all are considered not to be well formed XML documents. Also check to be sure your attributes are properly coded. Attributes in XML are the name = value combinations in the tags. In XML you cannot include white space around the = sign. XML attributes are coded as follows: name="value" Note that the value must be wrapped in quotes to be valid. While it looks like HTML, XML (and PCML) cannot be coded like HTML. You have stricter rules. Tags in XML must be coded as follows: or this is single tag notation that does not require an end tag. I am including a working PCML document that I used to call an RPG program on the AS/400. You can review that for clarity. You could also review a manual on XML for the general syntax rules to make sure you comply. Check to be sure you follow these general rules and also check the placement of your start and end tags. If you still have problems post your code here as an attachment. Don't post directly b/c this forum supports HTML and it might not render properly in browsers. (Or you could copy/paste it into a word document and SaveAs an HTML document. Open the HTML document in a basic text editor like notepad and copy and paste your code from there.) Regards, Cliff

    ErfsysPgms.pcml

+ Reply to Thread

Similar Threads

  1. How to use PCML in JAVA?
    By Guest.Visitor in forum Programming
    Replies: 5
    Last Post: 03-23-2004, 04:14 AM
  2. PCML and RPG Procedure
    By strut91367@yahoo.com in forum Java
    Replies: 0
    Last Post: 04-08-2002, 10:14 AM
  3. RPG and PCML
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 11-09-2001, 06:27 AM
  4. How to pass the 35 parameters PCML limit
    By Guest.Visitor in forum Programming
    Replies: 5
    Last Post: 06-19-2001, 06:44 AM
  5. PCML and varying RPG parameters
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 06-15-2001, 07:59 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