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: 755
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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm


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