Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Combining multiple layout into single layout

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Combining multiple layout into single layout
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: 8687
Location: Back in jolly old England

PostPosted: Wed Aug 25, 2010 1:39 pm    Post subject: Re: Combining multiple layout into single layout
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
Location: italy

PostPosted: Wed Aug 25, 2010 1:41 pm    Post subject: Reply to: Combining multiple layout into single layout
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    Post subject:
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

Site Director


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

PostPosted: Wed Aug 25, 2010 7:48 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to convert 2 bytes into single by... pkmurali DB2 6 Fri May 25, 2018 1:41 pm
No new posts Splitting one row into multiple Rows ... Rajan Moorthy DFSORT/ICETOOL 9 Mon May 14, 2018 10:58 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts Using multiple routines at exit 6 in ... Randy Horowitz All Other Mainframe Topics 2 Sat Feb 10, 2018 11:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us