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
 

 

Cobol logic for VB to VB having differnet length.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Cobol logic for VB to VB having differnet length.
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

Site Director


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

PostPosted: Thu Jul 31, 2008 9:26 pm    Post subject:
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: 755
Location: Germany

PostPosted: Thu Jul 31, 2008 9:40 pm    Post subject:
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

Site Director


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

PostPosted: Thu Jul 31, 2008 9:44 pm    Post subject:
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: 755
Location: Germany

PostPosted: Thu Jul 31, 2008 10:00 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Aug 01, 2008 1:45 am    Post subject:
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    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 RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 5 Wed Mar 29, 2017 12:47 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am


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