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: 4648
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm


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