Chapter Contents |
Previous |
Next |
EXECLIST |
Syntax | |
Details | |
Example |
Syntax |
rc=IMGOP(task-id, 'EXECLIST', commandlist-id); |
region-id=PICFILL(graphenv-id, type, ulr, ulc, lrr, lrc, source<, 'EXECLIST'<, arguments>>); |
Type: Numeric
Details |
EXECLIST provides a mechanism for sending multiple commands to be processed at one time. If your program includes the same set of commands several times, you can fill an SCL list with those commands and then use EXECLIST to execute the commands.
Example |
Create an SCL list that consists of two sublists. Each sublist contains one item for a command name and one item for each command argument.
length rc 8; init: task-id=imginit(0); main_list=makelist(0, 'G'); sub_list1=makelist(0, 'G'); main_list=setiteml(main_list, sub_list1, 1, 'Y'); sub_list1=setitemc(sub_list1, 'WSIZE', 1, 'Y'); sub_list1=setitemn(sub_list1, 500, 2 , 'Y'); sub_list1=setitemn(sub_list1, 500, 3 , 'Y'); sub_list2=makelist(0, 'G'); main_list=setiteml(main_list, sub_list2, 2, 'Y'); sub_list2=setitemc(sub_list2, 'WTITLE', 1, 'Y'); sub_list2=setitemc(sub_list2, 'EXECLIST example', 2, 'Y'); rc=imgop(task-id, 'EXECLIST', main_list); return; main: return; term: rc=imgterm(task-id); return;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.