Sorry it should read IF POS("#O","!spf_line) <> 0 THEN Friedrich Friedrich Harasleben schrieb: > Gehan > > 1) you have to create a message file for keeping the redirected output > of listspf > > file spf_msg;msg > listspf ##### > *spf_msg > > 2) You have to process the the msg file in a loop as you always get the > first line of the file into your input variable > > WHILE (FINFO("spf_msg","EOF") > 0) DO > INPUT spf_line < spf_msg > IF POS("#O","!spf_line) = 0 THEN > ... then this should be the correct line to process > ENDIF > ENDWHILE > > regards > Friedrich > > "Gehan G." schrieb: > > > Thanks for all the help on my little printing info script. I > > finally got some time today to sit down and test out your > > examples. Unfortunetly I could't get either one to work. The > > first part works fine. The problem was that it's still not > > printing the file name. I cut down the script to just the part > > which prints the file name. I also had to make some minor > > changes. > > So here is where I'm at: > > > > parm spf > > listspf !spf > spfmsg.commands.sgaii > > input _spf_buf <spfmsg.commands.sgaii > > echo !_spf_buf > > deletevar _spf_@ > > > > The problem is that !_spf_buf is always blank. I even put it in > > to a loop and tried 100 inputs all of which came out blank. > > I know in the examples you guys had <*spfmsg but if I add the * > > I get: > > listspf 6454 >*spfmsg.commands.sgaii > > INVALID FILE REFERENCE (FSERR 54) > > listspf 6454 >*spfmsg.commands.sgaii > > Couldn't open output redirection file, command failed. (CIERR > > 9425) > > > > With out the * I get just a blank line printed but no errors. > > > > I have to get back to work if anyone can help it would be much > > appricated... > > > > gehan gehale > > ps. also if anyone knows a quick command to send a file to a > > printer dev that would be much appricated also. > > Ex. spoolf spfmsg.commands.sgaii;dev=200;pri=13;copies=1 > > > > That produces an error that spfmsg is too long a name for a > > spoolfile.. > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus – Powerful. Affordable. Sign up now. > > http://mailplus.yahoo.com > > > > * To join/leave the list, search archives, change list settings, * > > * etc., please visit http://raven.utc.edu/archives/hp3000-l.html * * To join/leave the list, search archives, change list settings, * * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *