IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cobol logic for VB to VB having differnet length.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gbalaa_007

New User


Joined: 24 May 2007
Posts: 10
Location: Los angeles, CA

PostPosted: Thu Jul 31, 2008 7:46 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 31, 2008 9:26 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Jul 31, 2008 9:40 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 31, 2008 9:44 pm
Reply with quote

Hi UmeySan,

Quote:
Quite simple...
Maybe icon_confused.gif

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Jul 31, 2008 10:00 pm
Reply with quote

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
View user's profile Send private message
gbalaa_007

New User


Joined: 24 May 2007
Posts: 10
Location: Los angeles, CA

PostPosted: Fri Aug 01, 2008 1:35 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 01, 2008 1:45 am
Reply with quote

Hello,

Quote:
Thanks a lot for you time.
You're welcome icon_smile.gif
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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
Search our Forums:

Back to Top