View previous topic :: View next topic
|
Author |
Message |
gbalaa_007
New User
Joined: 24 May 2007 Posts: 10 Location: Los angeles, CA
|
|
|
|
input file. VB (268+4)
field 1 -12
field 2- tab
field 2 -255
output VB (271+4)
field 1 -12
field 2 -tab
field 3 -2 --sequence number based the no of times field 1 is present.
field 4 - tab
field 5 -255
Thanks
Bala |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quite insufficient. . .
You need to describe your "rules" in sentence form and you need to provide sample input data. Then you need to post how you want the output when that sample input data is processed. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
>> logic for VB to VB having differnet length.
Quite simple...
Read input, prepare output-structure, compute new record-length,
write output
What else could one answer to that question ???
But also, what else would you have to do? That's it, really! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi UmeySan,
Maybe
Quote: |
sequence number based the no of times field 1 is present. |
This confuses me. . . I don't know how field one can pe present more than one time in any given record. . . Hence, the request for rules and sample data. . . |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Good evening Dick !
>> sequence number based the no of times field 1 is present
I really agree with you.
Because of the aspekt you wrote, I did not thought about that any more.
If i would think about every statements here in detail, sometimes i would become desperate. Sometimes it's hopeless to guess what they mean.
Nice evening |
|
Back to top |
|
|
gbalaa_007
New User
Joined: 24 May 2007 Posts: 10 Location: Los angeles, CA
|
|
|
|
Sorry for not given enough/clear details in query.
Btw i hv written the pgm and its working fine.
Thanks a lot for you time.
Nice evening...
bala |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Thanks a lot for you time. |
You're welcome
Quote: |
Sorry for not given enough/clear details in query. |
Not to worry - happens very often. We just ask for clarification from the requestor.
Quote: |
Btw i hv written the pgm and its working fine. |
Good to hear it is working. Might you post the code? It may help someone else later. |
|
Back to top |
|
|
|