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

Value passing from Cobol to JCL.


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

New User


Joined: 12 Sep 2005
Posts: 1

PostPosted: Wed Sep 14, 2005 4:41 pm
Reply with quote

Can we pass values from cobol to jcl? How? (I am not talking of passing return code values )
Back to top
View user's profile Send private message
cheli

New User


Joined: 21 Jul 2005
Posts: 11

PostPosted: Wed Sep 14, 2005 5:02 pm
Reply with quote

Hi.....

As we know,other than RETURN-CODE we can't pass any value to JCL.
Back to top
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Mon Sep 19, 2005 11:38 am
Reply with quote

if i m not wrong you r asking abt the control value...

Here the example
//CS00688A JOB ACCOUNT,'OSG',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),
// NOTIFY=&SYSUID
//STEP1 EXEC PGM=FILE
//STEPLIB DD DSN=CS00688.LOAD.COB390,DISP=SHR
//DD1 DD SYSOUT=*
//SYSPRINT DD DSN=CS00688.LOC.CNTL(CONDITON),DISP=SHR
//SYSIN DD *
RAVI
5
/*

In the above example i m giving value to Jcl through program "FILE"(COBOL) one.
Back to top
View user's profile Send private message
sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Mon Sep 19, 2005 12:38 pm
Reply with quote

Hi ravi,

Can u explain me more detail.

I think there is only one way to return the values to JCL.

What is control variables?

Thanks,
Sridevi
Back to top
View user's profile Send private message
ritakaur

New User


Joined: 19 Sep 2005
Posts: 13
Location: Belgaum

PostPosted: Mon Sep 19, 2005 1:49 pm
Reply with quote

we can pass conditon codes to jcl

bye.
rita
Back to top
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Mon Sep 19, 2005 3:37 pm
Reply with quote

I not mean control variable ,, i mean control value ,,, which we give in the batch running to pass value to cobol program to process.


Thats wat i mean
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 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 Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top