Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us