Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
passing date from cobol to jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
gayathrivenkatachalam

New User


Joined: 16 Apr 2005
Posts: 5
Location: india

PostPosted: Thu Dec 22, 2005 9:49 am    Post subject: passing date from cobol to jcl
Reply with quote

how to pass the system date value from a cobol program to my jcl
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Dec 22, 2005 9:55 am    Post subject: Re: passing date from cobol to jcl
Reply with quote

All you can pass from a program to the JCL is a numeric value in the Return-Code register (0-4096).

You can write your information to a dataset. However, that is of no value to the JCL.

My question is - why would your JCL need to care about the system date?
Back to top
View user's profile Send private message
gayathrivenkatachalam

New User


Joined: 16 Apr 2005
Posts: 5
Location: india

PostPosted: Thu Dec 22, 2005 9:58 am    Post subject:
Reply with quote

actually i wanted to know if there ia a possibility of passing a value from the cobol to the jcl.
Back to top
View user's profile Send private message
gayathrivenkatachalam

New User


Joined: 16 Apr 2005
Posts: 5
Location: india

PostPosted: Thu Dec 22, 2005 11:21 am    Post subject: pic clause of return code
Reply with quote

hi can u tell me what is the picture clause of return code variable?
Back to top
View user's profile Send private message
umeshkmrsh

New User


Joined: 21 Sep 2005
Posts: 79
Location: India

PostPosted: Fri Dec 23, 2005 3:02 pm    Post subject:
Reply with quote

RETURN-CODE is a built in variable in COBOL. You can access the value of RETURN-CODE variable in jcl using JCL var RC.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us