Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8593
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: 10211
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 Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us