John McKown wrote:
I'm a z/OS (and back to OS/VS1) type person. I don't know of any way to

I remember PCP, MFT and MVT[-)

do this as I think you want to. What I assume is that you basically want
to do one open() type function, and have the run time give you the
records from the file(s) in the concatenation without any more work on
your part anod only get an eof() indication at the end of the last file.
Now, I can envision writing a subroutine to do this, but I don't know of
one built in to, say, glibc. Now Perl does this if you do something
like:


I haven;t seen anyone offer a suggestion that will work for a program
that expects one input file that is not stdin. I think this does what
you want.


fred <(cat lots of files)

It's called "process substitution." and you can read all about it in the
bash manpage. The above example is a special case, one could also filter
input (using grep maybe) or generate a report from a database
(postgresql and psql perhaps), and the analogue for writing also works.





#!/bin/perl
while (<>) {
  print $_;
}

and invoke it:

perl -f program.pl file1.txt file2.data

it will read file1.txt and file2.data in that while() loop. But
something like C or Java generally won't.


On Thu, 2009-10-01 at 22:08, BISHOP, Peter wrote:
Hi,
I've searched around and drawn a blank.  What I'm wondering is whether there is 
a method in Linux that emulates a z/OS DDNAME's facility of allowing multiple 
datasets to be concatenated and effectively treated as one file.

I looked at symbolic links, the "cat" command, variants of the "mount" command, 
but didn't see anything clearly supporting this.  The ability supported by the DDNAME concept of 
not needing to copy the files to concatenate them is important as we want to avoid as much overhead 
as possible.

What we'd like to do is run a job on zLinux that accesses multiple z/OS datasets in one 
"file", as is done with the DDNAME concept with z/OS JCL.

Can NFS in some way support this?  I think NFS will only use the "mount" 
command anyway, but has it another route than that?

Thanks in advance for any help you can offer.
Best regards
Peter


Peter Bishop
HP Enterprise Services Asia Pacific South Mainframe Capability & Engineering
+61 2 9012 5147 office | +61 2 9012 6620 fax | [email protected]
36-46 George St | Burwood | NSW 2134 Australia

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390



--

Cheers
John

-- spambait
[email protected]  [email protected]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to