Example 3 (PL/I: 31-bit DLL)
The following is an example of a 31-bit PL/I program calling IDISNAP as a DLL.
*PROCESS AGGREGATE,ATTRIBUTES(FULL),LIST,MAP,NEST,SOURCE,STMT,
NONUMBER,OFFSET,XREF(FULL),OPTIONS,NOBLKOFF,RENT;
*PROCESS LIMITS(EXTNAME(8));
IDISPLI1: PROC OPTIONS(MAIN) ;
DECLARE
IDISNPD External Entry Options(asm),
Work Char(4),
Work140 Char(140),
Work1402 Char(140);
Work ='0002';
Work140 = 'User Title Data';
Work1402 = 'Datasets(IDIHIST(MY.HIST))';
Call IDISNPD(Work,Work140,Work1402);
End IDISPLI1;
This example is provided as sample job IDIVPLS1 in data set IDI.SIDISAM1.