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

Passing data from COBOL to JCL.


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

New User


Joined: 05 Jan 2006
Posts: 47

PostPosted: Thu Feb 09, 2006 5:19 pm
Reply with quote

Hi,

We pass data from JCL to COBOL using either SYSIN or PARM.

Is it possible to pass the data from COBOL to JCL?

Please explain in detail or any web link.

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

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Feb 09, 2006 5:29 pm
Reply with quote

It is already discussed earlier...

Regards,

Priyesh.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Feb 09, 2006 5:32 pm
Reply with quote

JCL by itself, as a language, has no "arguments" recieving capability (like ACCEPT in COBOL or ARG in REXX).

Hoever -
If you want to pass a numeric value, you can do that using the RETURN-CODE special register.

For all other data types, you'll have to write them into a dataset that will be read later by your job.

O.
Back to top
View user's profile Send private message
mf_user
Currently Banned

New User


Joined: 05 Jan 2006
Posts: 47

PostPosted: Thu Feb 09, 2006 6:07 pm
Reply with quote

Hi,

Thanks for the info and link.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top