IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get the batch processing date in COBOL Program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
richie

New User


Joined: 11 Jun 2005
Posts: 24

PostPosted: Mon Oct 24, 2005 10:57 am
Reply with quote

Hi,

I am trying to get the date in COBOL program.
The date has to be batch processing date and not the system date incase the batch is running after mid-night.

Could anyone please help me to get the code on this.

Thanks in advance.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Tue Oct 25, 2005 5:47 am
Reply with quote

Where do you intend to get this "batch processing date" from? The job scheduling system? Some external file? An online system?

Certainly it can be passed as a PARM through the program's LINKAGE SECTION.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Wed Oct 26, 2005 3:59 am
Reply with quote

most places put the date in various formats in a member of a PDS or Librarian library and simply read it into any program of an application that needs it.

the first batch job of the application, or group of apllications, seeds that member with the date(s).

some use REXX, ROSCOE, scheduler functionality to construct these date 'cards' (members)

at one place I worked, a program launched by CA-Scheduler simply wrote a console message reminding operations to run the ROSCOE RPF that performed the date seeding function.


Dave
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top