splitting file based on rectype



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

splitting file based on rectype

Postby sudhirhi1 » Wed Sep 17, 2008 12:22 pm

i have a file named cust-item file(structure can be declared by us) we should divide the file into two files based on cust type n item type(based on rec type)
need a cobol program
plss help
sudhirhi1
 
Posts: 1
Joined: Thu Aug 28, 2008 9:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: splitting file based on rectype

Postby dick scherrer » Thu Sep 18, 2008 4:37 am

Hello sudhirhi1 and welcome to the forums,

The way our forum works best is for you to post parts of your code and explain where there are problems/questions.

Someone here will be able to answer questions on why something won't compile or abends. If you are stuck on how to do some particular thing, post your question and someone will be able to help.

No one should post a program that does what you ask - you learn nothing from this. If we see people doing other people's homework, we delete those solutions.

In your description of the requirement, i believe you have mentioned what is required to split the file. Thinking out loud, you will want some SELECTS and FDs. I'd suggest the most simple record layout possible as you have no requirement to handle lots of fields. You'd then process the input as needed.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post