> ------------------ > search > input searchstr;prompt="Enter search string " > mpex.pub.vesoft > print @.forms.myacct;search=caseless "searchstr";num > print @.job.myacct;search=caseless "searchstr";num > print @.prod.myacct;search=caseless "searchstr";num > print @.pub.myacct;search=caseless "searchstr";num > print @.source.myacct;search=caseless "searchstr";num > **** > ------------------ Unlike job streams, the UDC file can't act as $STDIN for any programs it runs. Here's one solution: First, create a file named FILELIST (or whatever you want), which looks like this: --- @.forms.myacct @.job.myacct @.prod.myacct @.pub.myacct @.source.myacct --- And here's what your UDC will look like: --- search input searchstr;prompt="Enter search string " run mpex.pub.vesoft;info="print ^FILELIST; search=cl'!searchstr';num" --- or a command file: --- anyparm searchstr run mpex.pub.vesoft;info="print ^FILELIST; search=cl'!searchstr';num" --- --- Michael D. Hensley | mailto:[log in to unmask] Allegro Consultants | http://www.allegro.com 650/369-2303