I'm required to do copy some records from a file to another file using SORT utility.
I have one source PS flat file where it contains only one record as below
Source File:
1234520080403
I have one another Destination PS flat file where it contains lot many records as below. I wanted to place the above record from source file to the expected position in destination file without disturbing Greeting message in first line as explained below.
Destination File:
Greeting!! Welcome to IBM Mainframe Forum.
Sr Number: 12345 <First five digit of source PS file>
JoinDate: 04/03/2008 <Date from source PS file>
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Mr. Niceguy,
Here's a DFSORT job that will do what I think you asked for. I showed the input files as inline (DD *), but you can use DSN=... for them if appropriate.