a cobol logic

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
snehamahajan
Member
Posts: 1
Joined: Thu Jan 10, 2013 6:13 am

a cobol logic

Post by snehamahajan » Thu Jan 10, 2013 6:27 am

please tell the logic for the following program-
updates the account balance for all the accounts after settling the
withdrawals against the existing balance. A customer can withdraw any amount of money any number of times in a day.
The Transaction Details file should be a Sequential Input File.
please help me.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Thu Jan 10, 2013 12:56 pm

And the Master File is? If sequential, two-file match and create a new file, if KSDS, and transactions generally less than 5% vs records on Master File, then keyed reads and update in place.

The rest is just arithmetic.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Jan 14, 2013 11:43 am

And is it a real Production question or a class-exercise?
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others