Greetings to all. I'm new to COBOL and I have been given a stumper.
First, I'm using rm/cobol85 version 7.5 on redhat linux.
My problem: I need my program to build a data file named for the current year and month in YYMM format. For example, every time the program is executed in February 2004, it would output data to a file named 0402DATA. Starting March 1st, the data should be output to 0403DATA. If the file 0403DATA already exists when the program is ran, the new data should overwrite the old data.
Is this even possible? Could anybody point me in the right direction to do this?
First, I'm using rm/cobol85 version 7.5 on redhat linux.
My problem: I need my program to build a data file named for the current year and month in YYMM format. For example, every time the program is executed in February 2004, it would output data to a file named 0402DATA. Starting March 1st, the data should be output to 0403DATA. If the file 0403DATA already exists when the program is ran, the new data should overwrite the old data.
Is this even possible? Could anybody point me in the right direction to do this?