+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: API handbook

  1. #11
    Guest.Visitor Guest

    Default API handbook

    Derek, We are probably going to need to see the code affected. BUT, you may be making the mistake that just about everyone makes when they first get involved with API's. Your binary fields should be defined as a length of 9, not 4. The only time to define them as 4 is if you specify the from and to positions, this would result in a binary field of 9 digits. Bill

  2. #12
    Guest.Visitor Guest

    Default API handbook

    Thanks BILL I even have looked at the articles in 19980702 (Catch of the day). I copied most of the info from it. I thought it would work. I have had no luck. I was wanting to use the SPLF API and pull in the user spool files into a SFL. When they select the one they want, return to the CL and pass the info so I can copy that file to a disk file. Sounds easy but has been hard for me. Not knowing is the biggest disadvantage. Below is the error when I run it. It looks like the USRSPC is being created and then when I try to use it, I get this. Could you please help again. THANKS again CALL AK0920C Object AKSPLF in library QTEMP not found. Function check. CPF9801 unmonitored by AKSPL100 at statement 0000000185, instruction X'0000'. The call to *LIBL/QUSRTVUS ended in error (C G D F). The call to *LIBL/QUSRTVUS ended in error (C G D F).

  3. #13
    Guest.Visitor Guest

    Default API handbook

    Derek, This is really gonna be tough without the source code listing of your program. If I take everything at face value, it seems as if you are trying to retrieve information from a user space that DOES NOT exist. You have to have the user space created before you can pull from it. If the program is relatively large, you can download it to a text file and attach it to your message and then we can look at it. Bill

  4. #14
    Guest.Visitor Guest

    Default API handbook

    Bill, After reviewing your message, I tried something yesterday. I keyed the command directly on the line. It worked. So, I reviewed my program. It seems I had the 4 binary (WRONG). THANKS for your assistance. Derek L

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Mark McCall's AS/400 Programmer's Handbook SFL005R
    By schmitz395@adelphia.net in forum RPG
    Replies: 1
    Last Post: 11-30-2005, 08:15 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