View previous topic :: View next topic
|
Author |
Message |
apvardhini
New User
Joined: 23 Apr 2009 Posts: 20 Location: India
|
|
|
|
My requirement is to create as many number of files as the number of records from an input file. This should be done dynamically in a COBOL program meaning I don't khow many records will come in on a day and hence could not put that many FD sections in my COBOL program. Can someone help?
PS: This is for a code-generator program.
Thanks.
Parvatha |
|
Back to top |
|
|
xknight
Active User
Joined: 22 Jan 2008 Posts: 117 Location: Liberty city
|
|
|
|
Quote: |
Hi,
My requirement is to create as many no of files as the number of records from an input file using. This should be done dynamically in a COBOL program meaning I dono how many records will come on a day and hence could not put that many FD sections in my COBOL program. Can someone help?
PS: This is for a code-generator program. |
Hello Parvatha, Isn't this irrelevant post to the thread/topic. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
apvardhini wrote: |
Hi,
My requirement is to create as many no of files as the number of records from an input file using. This should be done dynamically in a COBOL program meaning I dono how many records will come on a day and hence could not put that many FD sections in my COBOL program. Can someone help?
PS: This is for a code-generator program.
Thanks.
Parvatha |
My, my, my.
This is actually quite trivially doable. However, have you thought about what's going to happen on the day that someone/something upstream bakes the dog and sends you a control data set with a lakh of records in it...and the storage management team comes after you with hot tar, feathers, and a fence rail? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
apvardhini
New User
Joined: 23 Apr 2009 Posts: 20 Location: India
|
|
|
|
Thanks to all.... I will get back to you after checking those links.... And sorry to have posted in an unrelated topic.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Why does someone believe all of these files even need to be created?
If you explain how they will be used, someone may have an alternative suggestion. This is most likely NOT a requirement, but merely a way someone has chosen to meet a requirement. |
|
Back to top |
|
|
apvardhini
New User
Joined: 23 Apr 2009 Posts: 20 Location: India
|
|
|
|
Its a code generator program for archiving tables. The input records will be table names given depending on need.... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
why don't you use the input file to generate control cards for a utility that would accomplish the 'unload' of the tables for archiving in a much better manner, as well as easier. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
the issue has been debated so many times that it has become pretty boring,
almost deserves to be listed in the 'topics not eligible for discussion'
did You check the links provided ?
PS.
we are at loss here,
noo way the TS will ever care for best practices approach
they just want somebody else solve the problems that they cannot solve themselves
and f*** the best practices |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
enrico-sorichetti wrote: |
we are at loss here,
noo way the TS will ever care for best practices approach
they just want somebody else solve the problems that they cannot solve themselves
and f*** the best practices |
My team lead baked the dog this morning; he ran a job that submitted others. Unfortunately, he hadn't tested it adequately and it submitted 30,000 jobs on our development sysplex. The performance management workgroup was not happy. We'll see if apvardhini's bosses are as indulgent and allow him to remain employed after screwing up in an equally spectacular fashion. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
follow on
i had a finger check and the most important adjectives were lost in the traffic
Quote: |
they just want somebody else solve the problems that they cannot solve themselves |
should have been
Quote: |
they just want somebody else solve the low level technical problems that they cannot solve themselves |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hi Enrico,
Long ago i pretty much gave up on "best practices".
Many places don't even strive for good practices - just what can be done "right now". . .
There are now many supervisors/project leads that have no clue about "good ways to do things" - and many of these have 5 or 10 years "experience" .
d |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
well..
I am hard headed, and I am not going to give up
i think that most of these people belong to the smart*ss category ...
I do not have the time to do the things in the right way, but I have it to do them twice |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 767 Location: Whitby, ON, Canada
|
|
|
|
Maybe their "Best Practice" is to get others to do the work for them? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
apvardhini
Rather than be critical of the attitude of people who prefer to do things correctly, be thankful that they find the time and spirit to help YOU and thank them rather than to critisise them. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
apvardhini wrote: |
Big heads... watch your words... just because you help us technically does not mean you can use all your 4 letter words on us..... |
First, learn to count. Second, learn difference between "all" and small integers. Third, re-read this thread with those new skills in mind. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 767 Location: Whitby, ON, Canada
|
|
|
|
I confess that I used a 4 letter word in my response: "work" |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Best practice means getting paid at the end of the day. Then you move on to the next customer that your sales team talked into signing a contract. That is a VALID business model.
Think of fountain pens. You used to buy one and keep it for years/decades. It was made to last. If there was something wrong with it, you could actually take it to a craftsman and they would repair it.
Now days, you buy cheap disposable pens for about $2 a dozen. They work for a few weeks and you toss them out. That's what people want these days. If they find another brand for $1.50, they'll buy it. They don't care about the difference in quality.
So if you make disposable pens, would you spend the time to make it "right" or would you just get them made? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
I don't think anyone used a 4 letter word on you - OK perhaps 'work' |
|
Back to top |
|
|
jasorn Warnings : 1 Active User
Joined: 12 Jul 2006 Posts: 191 Location: USA
|
|
|
|
My advice is that if you plan to create datasets dynamically, you follow your shops rules on this. |
|
Back to top |
|
|
|