OK, so you write a driver program:
PROGRAM PROGRAMNAME.DRIVER
GET-LIST LISTNAME
LOOP
READNEXT ID ELSE EXIT
DATA ID
EXECUTE "RUN LIB PROGRAMNAME"
REPEAT
END
George Gallen wrote:
The program doesn't normally process lists, it just does an input.
for a 1x reason, we need to batch-run this program with the contents of the
list.
George
-----Original Message-----
From: [email protected] [mailto:u2-users-
[email protected]] On Behalf Of Jeff Schasny
Sent: Thursday, December 10, 2009 2:23 PM
To: U2 Users List
Subject: Re: [U2] A readnext within a VOC?
OK, I'll bite. Why not just write and catalog a program. Seems like a
paragraph is the wrong tool. Seriously, you could probably cobble
something together using editor macros too but why?
George Gallen wrote:
I'd like to setup a VOC to select a list, then run a program for
each entry in the list (like below...)
PA
GET-LIST LISTNAME
LOOP
READNEXT ID ELSE EXIT
DATA ID
RUN LIB PROGRAMNAME
REPEAT
I Thought there was a way to do this...but just can't remember how.
In the meantime, I pass the list to another program (on another
channel) which reads each item
and EXECUTEs the PROGRAMNAME
George Gallen
Senior Programmer/Analyst
Accounting/Data Division, EDI Administrator
[email protected]
ph:856.848.9005 Ext 220
The Wyanoke Group
http://www.wyanokegroup.com
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
--
-----------------------------------------------------------------------
-
Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com
-----------------------------------------------------------------------
-
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
--
------------------------------------------------------------------------
Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com
------------------------------------------------------------------------
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users