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: 8619
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
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 Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm
No new posts Selecting a row from multiple tables! Vignesh Sid DB2 2 Thu Oct 26, 2017 6:09 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

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