IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Combining multiple layout into single layout


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maradha

New User


Joined: 22 Aug 2008
Posts: 6
Location: bangalore

PostPosted: Wed Aug 25, 2010 1:26 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 25, 2010 1:39 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Aug 25, 2010 1:41 pm
Reply with quote

from the TS profile
Lead analyst
...
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Wed Aug 25, 2010 5:05 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 25, 2010 7:48 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top