ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

What is the equivalent of a named PLIST in /Free?

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

  • What is the equivalent of a named PLIST in /Free?

    Having read "What is the equivallent of a *Entry PLIST in /Free?" (url: http://www.code400.com/forum/forum/i...-plist-in-free) I still don't now how to replace a named PLIST in /Free. For ordinary program calls, I am perfectly capable of coding a prototype and using that. However, for SPECIAL FILEs, a named PLIST is still required as far as I can find out. Can somebody please prove me wrong?

  • #2
    Correct, SPECIAL files were never updated to give them a fully free-form equivalent.

    Instead of SPECIAL files, consider using Open Access. It's much more powerful.

    Comment


    • #3
      Like so:

      Code:
      d bufferDs     e ds                  extname([I]specialFile[/I])
      
      d [I]programName[/I]    pr
      d option                        1
      d status                        1
      d error                         5 0
      d buffer                             like(bufferDs)
      
      d [I]programName[/I]    pi
      d option                        1
      d status                        1
      d error                         5 0
      d buffer                             like(bufferDs)



      Just replace the values for specialFile and programName.

      Also notice 'pr' and 'pi'.
      Last edited by Flodge; June 8, 2017, 05:42 AM.

      Comment


      • #4
        Flodge, the PLIST for a SPECIAL file lets you pass additional parameters besides the five official parameters. The PLIST would have to be coded in fixed form C specs, which could be in a /copy file if the rest of the code was fully-free.

        Comment

        Working...
        X