View previous topic :: View next topic
|
Author |
Message |
shreedhar
New User
Joined: 05 Feb 2007 Posts: 4 Location: Pune
|
|
|
|
Hi,
I want to copy file1 into file3 with below requirement.
Requirement: Overlay a column in file1 (position 44, length 6) with file2's field (position 31, length 6) creating outfile file fille3 for all my input records in file1. All are FB records/files as below
File1 - record length 1000
File2 - record length 200
File3 - record length 1000.
File2 will always have only a single record.
File1 can have any number of records.
I have seen examples of overlaying a field with the constant. But here I am looking for overlaying a field with the another file's field value. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Most efficient way to do it is two steps. First step process the single-record file and generate a symbol/SYMNAMES for the value.
Second step is to use the symbol to OVERLAY your value, which is by now a constant in your symbols.
Search this forum for SYMNAMES and you should find examples, often with dates. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
This topic is a duplicate of your same topic on the Beginners Forum.
It is now locked.
d |
|
Back to top |
|
|
|