View previous topic :: View next topic
|
Author |
Message |
rakeshahgnug Currently Banned New User
Joined: 07 Feb 2008 Posts: 6 Location: bangalore
|
|
|
|
i have two vsam file ...one old an one new ....
i want a 8bytes(9(08)) field to be added in the new file which is in table(occurs 15 times) .....
and all the remaining things should be same as the old file? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
So what is the question ? |
|
Back to top |
|
|
rakeshahgnug Currently Banned New User
Joined: 07 Feb 2008 Posts: 6 Location: bangalore
|
|
|
|
my question is ....
i need to cr8 a new file ....... which is same as the old file but for the new 8 bytes(which is in the table) .........?? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
rakeshahgnug wrote: |
my question is ....
i need to cr8 a new file ....... which is same as the old file but for the new 8 bytes(which is in the table) .........?? |
You are making a statement, and we do not know what you want to do unless you tell us.
If the eight byte field occurs 15 times, then shouldn't you want to add 120 bytes to the record rather than 8 ??? |
|
Back to top |
|
|
rakeshahgnug Currently Banned New User
Joined: 07 Feb 2008 Posts: 6 Location: bangalore
|
|
|
|
thanks for the reply,
ya i'm adding 120 bytes ......
can anyone tell me the technique to do it?
e.g (old layout)
01 record.
05 key.
10 key1 pic 9(10).
10 key2 occurs 15 times.
15 code pic x(04).
10 key3 pic 9(10).
(new layout which i need)
01 record.
05 key.
10 key1 pic 9(10).
10 key2 occurs 15 times.
15 code pic x(04).
15 extra pic 9(08).
10 key3 pic 9(10). |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
What is the current definition for the VSAM file ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Define an "old" fd and a "new" fd (using the record layouts you've already posted).
Read the old format and write the new format.
That should do it. . .
If i've misunderstood, please clarify. |
|
Back to top |
|
|
rakeshahgnug Currently Banned New User
Joined: 07 Feb 2008 Posts: 6 Location: bangalore
|
|
Back to top |
|
|
rakeshahgnug Currently Banned New User
Joined: 07 Feb 2008 Posts: 6 Location: bangalore
|
|
|
|
this was not answer to my questions |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
expat wrote: |
What is the current definition for the VSAM file ? |
Just maybe, if you supplied what you are asked to supply, rather than sitting back and waiting for us to guess your VSAM definition we might actually get somewhere towards solving your problem.
In fact I am guessing right now that what you want is to define the correct VSAM file for your new file layout. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Did you not post the "old" and "new" file layouts?
Do you not need to copy from one to the other?
Quote: |
this was not answer to my questions |
Well, it was an answer to what you posted. . .
Which part of read one and copy to the other does not meet your need?
You probably have (in your own mind) a clear idea of what you want, but you have done little to explain it to the forum. Due to the high number of people who read these topics, i'm sure some will actually guess just what you meant, but that will not be due to a proper problem definition.
As i mentioned, i might not understand what you are asking, but the answer given goes with what you asked.
If you take a bit of time and better present your requirement, you will probably get replies more to your liking. |
|
Back to top |
|
|
rakeshahgnug Currently Banned New User
Joined: 07 Feb 2008 Posts: 6 Location: bangalore
|
|
|
|
guys thank u for ur help ..... i got it!
may be even i had only this much idea ..........which i put in front of u guys.... i couldnt do nething better than that
neways thanks again! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
guys thank u for ur help ..... i got it! |
You're welcome If you post your reolution, it may help someone else with a similar question later.
Quote: |
may be even i had only this much idea ..........which i put in front of u guys.... i couldnt do nething better than that |
Learning to have a technical discussion in other than one's primary language can be quite frustrating, but i believe you will find it very valuable.
Good luck
d |
|
Back to top |
|
|
|