PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06/22/2016 2:38 PM by  Jessica M
Using current date in if statement
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Jessica M
Lawson Application Specialist
Covenant HealthCare
Advanced Member
(71 points)
Advanced Member
Posts:31


Send Message:

--
06/22/2016 1:39 PM

    I am hoping someone can help me with a COBOL statement.  I haven't touched cobol in quite a while and my co-worker that usually works with our custom cobol is out of the office for a bit.

    I have a custom program that was excluding any employee with a term date in a file.  They now want to change it to include anyone termed that day. 

    The current statement is:

    IF (EMP-TERM-DATE > "00000000")
                GO TO 1040-NEXT-EMPLOYEE.

    How do I change this to "GO TO 1040-NEXT-EMPLOYEE" when "EMP-TERM-DATE" is before the current date?

    I would greatly appreciate any assistance with this.

    Ragu Raghavan
    Private
    Private
    Veteran Member
    (823 points)
    Veteran Member
    Posts:287


    Send Message:

    --
    06/22/2016 2:02 PM
    IF (EMP-TERM-DATE NOT = ZEROES)
    AND (EMP-TERM-DATE < WS-SYSTEM-DATE-YMD)
    GO TO 1040-
    Jessica M
    Lawson Application Specialist
    Covenant HealthCare
    Advanced Member
    (71 points)
    Advanced Member
    Posts:31


    Send Message:

    --
    06/22/2016 2:38 PM
    Thank you so much. That appears to have worked.
    You are not authorized to post a reply.