ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

CPE3460 with XML-INTO

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CPE3460 with XML-INTO

    Does anyone know what needs to be done when you get the above error message running a RPG IV pgm? The job log is:
    Storage allocation request failed.

    Function check. CPE3460 unmonitored by QRNXUTIL at statement 0000000060,
    instruction X'0000'.
    The program line referred to is -
    Code:
     
    xml-into NewOrderResp %xml(xmlfile: options);
    This worked perfectly 2 days ago when I created the program. Made a minor change to xmlfile (changed directory to use) , recompiled, ran and got the CPE3460. Changed directory back and still get the error.
    HELP!!

  • #2
    Re: CPE3460 with XML-INTO

    IBM say :
    Storage allocation request failed. A function needed to allocate storage, but no storage is available.

    It's a big xml file ?
    Patrick

    Comment


    • #3
      Re: CPE3460 with XML-INTO

      Hello,
      File size is less than 1K,
      Bob

      Comment


      • #4
        Re: CPE3460 with XML-INTO

        Found it!
        Bl...dy file now has 0 bytes - something emptied it!
        Recreated from backup on PC and pgm now works fine.
        Now I know will have to check file size BEFORE running program (new thread unless I can find that somewhere!)
        Thanks for help,
        Bob

        Comment


        • #5
          Re: CPE3460 with XML-INTO

          from another forum :
          PHP Code:
          qsh cmd('find /qdls/ -name '*.doc' -ls > /tmp/filelist.tmp'
          That should build a file named filelist.tmp in directory tmp in the IFS for all files with a .doc extinsion that are in directory QDLS. Ending in column 80 is the file size in bytes. The > sign pipes the output of the Unix find utility to the file specified on the right. The -ls option tells find to list the file attibutes. If you really need "records", you could try and count carriage returns in the file using something like grep, which is another Unix utility. Once you have the data in a file, you would read it in a program. Since RPG is one of your options, I would look at the open source and free (as in free speech, not free beer) iSeries-toolkit, which contains RPGIV programs that will read, write, update, etc. data in IFS files. The module and service program you need in the toolkit is named Unix. David Morris
          from this site CL


          command/program from easy400.com


          i know there is an rpg version on this site, but the search sucks!
          (im looking into that now)


          jamie
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Re: CPE3460 with XML-INTO

            Thank you Jamie - you are up early!

            Comment


            • #7
              Re: CPE3460 with XML-INTO

              Working on getting the kids moving....
              Wife is in Texas, Im all they have at this time and thats not good for them

              Get a bit of quiet time b4 the storm.

              jamie
              All my answers were extracted from the "Big Dummy's Guide to the As400"
              and I take no responsibility for any of them.

              www.code400.com

              Comment

              Working...
              X