From: arrbee on
Hi,

Is it possible to control the output files from a COBOL programs? I've
a requirement where I will have to produce the output file (a report)
only on Fridays in a year.

How to get it done? We are using "IBM Enterprise COBOL for z/OS and
OS/390 3.2.0"

Please help.

From: Rick Smith on

"arrbee" <arrbee(a)gmail.com> wrote in message
news:1145604671.952859.159440(a)v46g2000cwv.googlegroups.com...
> Hi,
>
> Is it possible to control the output files from a COBOL programs? I've
> a requirement where I will have to produce the output file (a report)
> only on Fridays in a year.
>
> How to get it done? We are using "IBM Enterprise COBOL for z/OS and
> OS/390 3.2.0"

Maybe using something like this.

01 d-o-w pic 9.
88 friday value 5.

accept d-o-w from day-of-week
if friday
perform produce-report
end-if

Unless you are looking for a solution using JCL or
job scheduling. In which case, I will defer to others.



From: William M. Klein on
There are also several other "COBOL language" options - depending upon exactly
WHAT you are looking for.

Certainly, if you are looking for a way to "dynamically allocate" the file (only
on Fridays) then you would want to look at the "dynamic file allocation"
information available with Enterprise COBOL.

--
Bill Klein
wmklein <at> ix.netcom.com
"Rick Smith" <ricksmith(a)mfi.net> wrote in message
news:124h4ca8bpmba9b(a)corp.supernews.com...
>
> "arrbee" <arrbee(a)gmail.com> wrote in message
> news:1145604671.952859.159440(a)v46g2000cwv.googlegroups.com...
>> Hi,
>>
>> Is it possible to control the output files from a COBOL programs? I've
>> a requirement where I will have to produce the output file (a report)
>> only on Fridays in a year.
>>
>> How to get it done? We are using "IBM Enterprise COBOL for z/OS and
>> OS/390 3.2.0"
>
> Maybe using something like this.
>
> 01 d-o-w pic 9.
> 88 friday value 5.
>
> accept d-o-w from day-of-week
> if friday
> perform produce-report
> end-if
>
> Unless you are looking for a solution using JCL or
> job scheduling. In which case, I will defer to others.
>
>
>


From: arrbee on
Hi Rick, Thank you very much. I want to achieve it programatically. Of
course, we eventually execute JCL with this program load
module........:-)

From: HeyBub on
arrbee wrote:
> Hi,
>
> Is it possible to control the output files from a COBOL programs? I've
> a requirement where I will have to produce the output file (a report)
> only on Fridays in a year.
>
> How to get it done? We are using "IBM Enterprise COBOL for z/OS and
> OS/390 3.2.0"
>
> Please help.

Produce the file every day and tell the end-user to access the file only on
Fridays.

This technique transfers ownership of the problem to someone else.


 |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11
Prev: How many bytes?
Next: ROSCOE tutorial needed