Subject: | |
From: | |
Reply To: | |
Date: | Tue, 14 Oct 2003 18:38:59 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Vijay,
I think the "paste" command in the shell is what you want:
:print file1
123
456
789
:print file2
aaa
bbb
ccc
:paste.hpbin.sys "FILE1 FILE2"
123 aaa
456 bbb
789 ccc
Note the filenames must be uppercase since paste is a POSIX program and
expects uppercase filenames for MPE type files.
You can redirect the output from this to a new file to save the results:
:build newfile;rec=-80,,f,ascii;disc=3
:file out=newfile,old
:paste.hpbin.sys "FILE1 FILE2" > *out
:print newfile
123 aaa
456 bbb
789 ccc
Rich Trapp
Consultant
Managed Business Solutions
[log in to unmask]
-----Original Message-----
From: Srifan_In [mailto:[log in to unmask]]
Sent: Tuesday, October 14, 2003 5:47 PM
To: [log in to unmask]
Subject: merging two files.
I am struggling to write a job which can merge two files.
The functionality I am looking for is like below:
contents of File1.pub
aaa
bbb
ccc
contents of File2. pub
123
456
789
I want to write a job, which has to merge the files and create a new
file called file3.pub like belo
aaa|123
bbb|456
ccc|789
Any pointers will be of great help.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|