For Programmers: Free Programming Magazines  


Home > Archive > AWK > December 2006 > Re: Need help with reading until one field in multiple records all









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Need help with reading until one field in multiple records all
news.t-online.de

2006-12-13, 4:08 pm

This is not an awk program

> while ( EndofRout > 0 ) {
> NR = 1
> while ( (getline < "/tmp/output.orig") > 0 ) {
> OutSyncTrack[NR] = $7
> NR++
> } # end of while getline to build OutSyncTrack array
> #
> #
> for ( x = 1; x <= NR; ++x ) {
> EndofRout = 0
> print "EndofRout is " EndofRout
> if ( OutSyncTrack[x] != 0 )
> EndofRout = 1
> continue
> }
> }
>

Janis Papanagnou

2006-12-13, 4:08 pm

news.t-online.de wrote:
> This is not an awk program


It is.

Not a correct one, because the surrounding brackets are missing, but it is
an awk program.

What do you think it is?

Janis
[color=darkred]
>
news.t-online.de

2006-12-13, 4:08 pm

news.t-online.de wrote:[color=darkred]
> This is not an awk program
>
I do not know what Ray's problem with IBM's DS8100
actually is.
I heard of this device in conjunction
with IBMs OS MVS or now zOS, one of the real OSes
around, if not the only real OS.
It's a physical device which
next to other features represents
a system wide recycle bin.
As soon as one has written to a file (MVS knows lots of file
organisation methods next to a stream file as we know
it from Unix or windows), the DS8100 stores it away
with a time stamp or version number, as we know it
from the windows recycle bin, it's fully
automatic and with the original access rights.
A perfect backup, however this system creates a tremendeous
hay stack, which can be listed by JCL job cards,
piped to COBOL programs, which find the needle,
or REXX procedures which are very very slow.
In so far awk is a perfect tool, especially
since the IBM's MVS ftp server does can execute
ftp sent programs.

Create the JCL on a PC with awk,
ftp it to JES, get the job log with JES,
anylyze with awk to the DS8100 listing,
send a new JCL job for restoring the files.
Oh dear, why is there no awk for MVS.











Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com