Subject: | |
From: | |
Reply To: | |
Date: | Wed, 25 Nov 1998 15:43:30 GMT |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
However, I believe I used the MPEXCURRENTFILE in a %REPEAT...%FORFILES
construct and did a print one !MPEXCURRENTFILE and put the ECHO just ahead of
the PRINT
Tom Hula wrote:
> I have run into the same thing and I use the ECHO command inside of the cmd
> file to echo the !MPEXCURRENTFILE so I can see the name of the file.
>
> Jay Willis wrote:
>
> > Thanks to Donna, Reid, and Jeff for suggestions relating to subject. I
> > probably should have said that I was doing the check from within an MPEX
> > cmd file. MPEX has a function, FTEMPEXISTS, which does this.
> >
> > if TEMPEXISTS("tempfile") = true then
> >
> > I have another question for anyone who is familiar with MPEX's Print
> > command. When I use MPEX to do a print/search for a string within a
> > fileset to stdlist, the results come out as:
> >
> > /%PRINT HRR00@PS;SEARCH=CL "INCLUDE";NUM
> > -----Printing HRR001PS.PROHR.PDEV
> > 56 $INCLUDE HRRINC1A
> > 59 $INCLUDE HRRINC1B
> > -----Printing HRR002PS.PROHR.PDEV
> > 62 $INCLUDE HRRINC1A
> > 65 $INCLUDE HRRINC1B
> >
> > But, when I do this within the cmd file, I get the above but not the
> > "-----Printing..." line.
> > Basically, what I am trying to do is a search of a fileset for a string
> > and writing the results to a temp file, and I would need to have not
> > just the line number where the string occurred with in a file, but also
> > the name of the file.
> >
> > Any ideas on this?
> >
> > Thanks again,
> > Jay
|
|
|