|
Prev: How many bytes?
Next: ROSCOE tutorial needed
From: arrbee on 21 Apr 2006 03:31 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 21 Apr 2006 04:00 "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 21 Apr 2006 04:29 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 21 Apr 2006 08:26 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 21 Apr 2006 09:46
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. |