Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to concat unix input files.

Status
Not open for further replies.

raulau

Programmer
Jan 7, 2008
1
0
0
US
Hi.
I'm new to the UNIX mainframe world. I have a problem which I can't solve. I need to concatenate multiple input files in order to process them. If I was in the IBM world it would be A simple JCL statements. as the example below.
//INFILE dd dsn=abc.def,disp=shr
// dd dsn=abc.efg,disp=shr

I would like to do this in UNIX ECL.
 
man cat

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
cat name of files to list

> BigFile # Start with empty file
ls * > list

for file in `cat list`
do
cat $file >> BigFile
done

Should do the trick!!

Chomps

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top