COBOL Logic required - -Very Urgent **

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
Senthil_mainframe
Member
Posts: 6
Joined: Fri Nov 23, 2012 3:52 am

COBOL Logic required - -Very Urgent **

Post by Senthil_mainframe » Wed Jan 16, 2013 7:50 pm

I have a very urgent requirement in COBOL… I need to add this logic in my program.
It would be great if some one could help me with this.
Current process – Program reads a flat file which holds a column in (Customer_Billed_time)HH.MM.SS format. It writes the detail records in the output file between the header and trailer without having any consideration of this time format
New requirement – is to read records which falls under each and every 5 minutes interval to group under separate header and trailer in the same output file. Let’s say .. if the time is 01:05: 00 (HH.MM.SS) ,I want to write all the records which falls between 1:05:00 AM to 1:10:00 AM – 5 Minute as a detail record between the header and trailer. Note that 05 – 10 is minutes here.
[][/img][/url]

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

Post by William Collins » Wed Jan 16, 2013 8:34 pm

As long as your starting points are "fixed" then it is no problem. Just deal with the "minutes". I assume your data is in time order? Starting from 00 to < 05 is one five-minute group, 05 < 10 is the next, etc.

Senthil_mainframe
Member
Posts: 6
Joined: Fri Nov 23, 2012 3:52 am

Code required for this Logic

Post by Senthil_mainframe » Thu Jan 17, 2013 7:48 pm

I would appreciate if some one could post real cobol program codes in order to implement this logic.

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Thu Jan 17, 2013 10:34 pm

We are certain that you would appreciate someone doing your work for you. . .

We are a help forum - not a "do my work for me" forum :(

What have you done so far? Where are you stuck?
Have a good one

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Fri Jan 18, 2013 1:53 am

If you want urgent then a forum is not the place to ask - answers (if any) are given on an "as-and-when" basis and only by those who can be bothered. I looked at this yesterday and did not bother. I will not bother today beacause your explanation of your requirement is not clear to me. Anyway, I don't do free code.
Regards
Nic

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