Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

API Quickstart ??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • API Quickstart ??

    In response to my initial request, I wonder whether anyone has got a skeleton RPG/400 pgm to invoke a system API.. thanks, Roger

  • #2
    API Quickstart ??

    Here's a simple one. The D-specs tell the compiler to call the external procedure named "atol", passing a string and returning a numeric value. Later, I can use it in an eval statement. In the C-spec shown, I take a character field (KWVAL), trim it to remove blanks, convert it to a number, and subtract 1 from it. This is obviously a very, very simple example. What exactly are you looking for? Joe

    Comment


    • #3
      API Quickstart ??

      Hi. I'm a novice RPG/400 programmer, and would be glad of some assistance in getting me started in writting a RPG pgm to call system API, QYPSCSCA. Many thanks ,Roger.

      Comment


      • #4
        API Quickstart ??

        Try chapter 5 of this free Redbook: Who Knew You Could Do That with RPG IV? A Sorcerer's Guide to System Access and More http://publib-b.boulder.ibm.com/Redb.../sg245402.html

        Comment

        Working...
        X