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

pass data from cobol to jcl


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
keerthi

New User


Joined: 23 Mar 2005
Posts: 25

PostPosted: Wed Apr 20, 2005 2:21 pm
Reply with quote

How can we pass data from COBOL to JCL

thanks,
keerthi.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Apr 20, 2005 4:40 pm
Reply with quote

You can't (not really, anyway).

You can send data to SYSOUT by using the COBOL DISPLAY statement, or you can write data to output as sysout or print data, or you can write the data to an external cataloged dataset, which can then be passed to another job step or another job for processing by another program.

You can, however, set a numeric value in the COBOL special register RETURN-CODE, which IS passed back to the calling job, which can then take a pre-determined course of action depending on the value specified.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
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
Search our Forums:

Back to Top