1753516 Members
5237 Online
108795 Solutions
New Discussion юеВ

Challenge

 
SOLVED
Go to solution
Jan van den Ende
Honored Contributor

Challenge

Ok,

this just as an exercise.

Follow this stream from top down, and try to find a better solution!

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=898993

I am curious!

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
11 REPLIES 11
Peter Quodling
Trusted Contributor

Re: Challenge

Jan, 100 pts for showing up the Eunuchs weenies...

q
Leave the Money on the Fridge.
Jan van den Ende
Honored Contributor

Re: Challenge

Well,

I must admit,
I HAVE been boasting a little, and I only CAN, because of... Guy Peleg.

In my solution, I used some of the qualifiers that Guy only recently introduced, and presented here in Nashua with his usual enthousiasm. You WILL need the last 732 or 82 DCL kit.

Never mind older versions (AFAIK).

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
labadie_1
Honored Contributor

Re: Challenge

install Perl on Vms, and use the Perl option ?

gawk :== disk:gawk
(in tcpip$examples.snmp, if memory serves me), and use awk ?

Dcl is not a good tool here IMHO
Bojan Nemec
Honored Contributor

Re: Challenge

Jan,

You give the response in the link.
But how to do this on an older VMS version without the new qualifiers?
Need more than one command ;)

$ DIR /COL=1/NOHEAD/NOTRAIL/OUT=ALL.TMP
$ SEA /WIN=0/OUT=FND.TMP
$ DIFF FND.TMP ALL.TMP/SEP=REVISION/MATCH=1

Some more work it will be needed to clean the result from the header and footer.

Bojan
Bojan Nemec
Honored Contributor

Re: Challenge

PS,

Maybe a hint for Guy. Why not add two qualifiers to DIFFERENCES: /HEAD and /STATISTICS and respective /NOHEAD and /NOSTATISTICS which will give you only the different records (of course with /NONUMBER).

Bojan
Jan van den Ende
Honored Contributor

Re: Challenge

hey,

the whole thing is about HOW to get these results IN UNIX, remember?

I normally only read those threads in an attempt to get a feeling for the Unix way of looking at things, and solving issues.

And ONLY because so many different people came to different constructs, which turned out no solutions, I came to do the excersize about how I would solve it.

AFAIK perl is there on *X as well, and more widely spread as on VMS, so I think any pearl solution would not even need the detour via VMS.

And as a practical solution the infrastructure will indeed not very often be there..

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Galen Tackett
Valued Contributor
Solution

Re: Challenge

One approach to doing this on Yeew-Nix! would be to install a simh VAX and run VMS on it, then do it on VMS.

:-D

(Do I need to explain Yeew-Nix! ??? :-)
Garry Fruth
Trusted Contributor

Re: Challenge

Jan, I am speaking from memory, and did not try this on a VMS machine yet. But I suspect your solution is incorrect:
$ SEARCH [...]*.*
"

File ABC.TXT contains:
a
b
c

SEARCH abc.txt a,c/MATCH=NOR/LIMIT=1/SILENT
will indicate ABC.TXT as a solution, even
though it contains "A". The question as I
interpreted it stated that they wanted files that did not contain ANY of the search strings. I think Bojan's solution (for which you awarded only 1 point) hits the mark; although I have not tested it.
Jan van den Ende
Honored Contributor

Re: Challenge

Anyone able to verify Garry├В┬┤s statement?
If he is right, that would pull the whole basement from under this stream :-(

I defer giving points till after verification.

Proost.

Have one on me.

j
Don't rust yours pelled jacker to fine doll missed aches.