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
 

 

creating the files dynamically

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Thu Oct 19, 2006 12:32 pm    Post subject: creating the files dynamically
Reply with quote

Hi,

I have the following requirement

I have one input file which has the following fields

ACCOUNT NUMBER and CODE

As of now CODE has only two values 1 and 2 and I know that the CODE values will be increased 1,2,3,4??.like??..

So I have to create the number of files based on CODE values dynamically?.

if the CODE has the values 1 and 2 then I have to create 2 files and if the CODE has the values 1,2,3 then I have to create 3 files and if the CODE has the values 1,2,3,4 then I have to create 4 files dynamically??and so on and so forth?

Note : I don?t know the unique values of CODE in the input file means?.it may 1 or 1,2 or 1,2,3, or and so on and so forth?.. Can we do like this?.

I hope you understood my problem?..


May I know whether I can create the files dynamically using the cobol program...

thx in advance....

pavan
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Fri Oct 20, 2006 7:54 pm    Post subject: Re: creating the files dynamically
Reply with quote

Hi !

If i interpret your question correctly, you have to create a various numer of files depending on an condition. This could be one to n output-files.

So, perhaps if condition 1 and 2 is true, you have to create and write data to file-1 and file-2. If condition 1 and 4 and 7 is true, you have to create and write data to files 1,4 and 7.

I don't remeber an easy way to do this in Cobol, but if you could invoke a assembler-subprogramm, this could do that. In assembler you could modify the DCB of an file.

If you could do that, i can give you a short sample of modifying DCB in assembler.

Regards, UmeySan
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 getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm


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