Midrange News for the IBM i Community


Posted by: Ping Ying
Witch is better for points in a procedure?
has no ratings.
Published: 16 Feb 2013
Revised: 22 Feb 2013 - 1735 days ago
Last viewed on: 23 Nov 2017 (3090 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Witch is better for points in a procedure? Published by: Ping Ying on 16 Feb 2013 view comments

Generally, there three kind of points for prototype under a procedure. First point for global parameters; Secode point for input parameters; Three point for output parameters.

 

First manifestation:

     callp MyProc(Point1:Point2:Point3) ;

 

p Myproc          b

d Myproc          pi

d   Point1                                      *

d   point2                                      *

d   point3                                      *

 

Secode manifestation:

     callp MyPorc(Point) ;

 

p MyProc              b

d MyProce            pi

d point                                         *

*

D Point                 Ds

D   Point1                                     *

D   Point2                                     *

D   Point3                                     *

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS