View previous topic :: View next topic
|
Author |
Message |
maradha
New User
Joined: 22 Aug 2008 Posts: 6 Location: bangalore
|
|
|
|
Hi
I have a input file with 2 layouts which will be identified with the field called layout, if this field contains 100, then it will have 100 record layout, if it contains 200 it will have 200 record layout.
05 Layout pic 9(3)
05 100-layout
...
..
05 200-layout redefined 100-layout
...
..
Requirement is to merge the file into single layout. I need to write a cobol program to achieve this. Please provide the program template.
Thanks, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
maradha wrote: |
Requirement is to merge the file into single layout. I need to write a cobol program to achieve this. Please provide the program template. |
This is a HELP forum rather than a do it for me forum.
What is wrong with the current method of using REDEFINES.
What suggestions are you proposing for us to ponder. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
from the TS profile
Lead analyst
... |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
Marada,
You have to provide info on what your expected result file should look like, and what challenges you face, except for thinking up the initial solution. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Requirement is to merge the file into single layout. |
Is this because there are developers who are not able to work with the multi-layout file?
What does the data look like? One way to get to your "solution" is to make some sample input data and the output wanted from that sample input. You could use 20-byte records for ease of use.
If there are multiple 100's or multiple 200's for a "key", that needs to be incorporated into your sample input/output
Once you actually see the input and output, you should have an idea about how to proceed.
Hopefully, this is very low volume data as it is a complete waste of time to create an entire copy of the data so that the programmer(s) have no need to think. |
|
Back to top |
|
|
|