Only problem was this program, and most others, that have inputs would almost
rarely be used for batch mode, so it would be dangerous to apply changes to
programs and potentially add in bugs just in case you might need to use it
in batch mode in the future.

It would be far easier if the functionality would have been implemented into
UV as it was in PI.

As for programming all programs that have inputs to also check for active select
lists, I wouldn't blanket all, because there are many programs that I would
never ever want to run accidentally with an active select list.

At least with the VOC method, you are actively typeing it in, so it not an 
accident
that it would run that way.

I agree, if this is a case where in the future, we would need to batch run the
program on a more frequent basis, then the programming change for that one would
be the better choice.

Thanks
George

> -----Original Message-----
> From: [email protected] [mailto:u2-users-
> [email protected]] On Behalf Of Bob Woodward
> Sent: Thursday, December 10, 2009 5:32 PM
> To: U2 Users List
> Subject: Re: [U2] A readnext within a VOC?
>
> Or you could smarten up the program and check if there is an active
> select list.  If not, INPUT, else READNEXT.  I do a lot of my
> Quick-N-Dirty programs like that, and a few main app programs that it
> makes sense to.  This way you can run it like it now operates, one
> record at a time, or you make a paragraph like you want, or for special
> situations, create a select list on the fly and run the program from
> TCL.
>
> Just a thought...
>
> BobW
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of andy baum
> Sent: Thursday, December 10, 2009 1:07 PM
> To: U2 Users List
> Subject: Re: [U2] A readnext within a VOC?
>
> George,
>
>
> This was possible in PI/Open using
>
> PA
> GET-LIST LISTNAME
> LOOP
>     IF <<L, ID>> = "" THEN GO NEXT
>      RUN LIB PROGRAMNAME
>      DATA <<ID>>
> REPEAT
> NEXT:
>
> Unfortunately this never made it in to Universe, don't know about
> Unidata. I reported this when I beta tested the PI/Open to Universe
> migration stuff,I think they 'fixed it' by documenting somewhere that
> it
> doesn't work.
>
> Cheers,
>
> Andy
>
>
> ----- Original Message ----
> From: George Gallen <[email protected]>
> To: U2 Users List <[email protected]>
> Sent: Thu, 10 December, 2009 19:03:08
> Subject: [U2] A readnext within a VOC?
>
> 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
>
>
>
>
> _______________________________________________
> 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
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to