GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 85 of 162    Print  
can we able to give the inputs to cobol program at run time.i.e cobol+ jcl

  
Total Answers and Comments: 8 Last Update: October 26, 2007     Asked by: vasu 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 05, 2006 23:28:21   #1  
Chitti Mutyala        

RE: can we able to give the inputs to cobol program at...
Yes you can do that through PARM parameter in JCL on EXEC step.
 
Is this answer useful? Yes | No
December 12, 2006 04:18:35   #2  
dipti        

RE: can we able to give the inputs to cobol program at...
yes through instream data
 
Is this answer useful? Yes | No
December 20, 2006 06:48:47   #3  
ashish_setia Member Since: October 2006   Contribution: 15    

RE: can we able to give the inputs to cobol program at...

hi

yes we can give input to cobol program at run time

use accept statment in cobol program and after compiling the code

in the run jcl part u can give values in

// sysin dd *

values(r)

/*

//

this way

regards

ashish


 
Is this answer useful? Yes | No
December 21, 2006 15:44:31   #4  
Sodadasi        

RE: can we able to give the inputs to cobol program at...

We can give input to COBOL program in two ways

a) By using PARM parameter

b) By using Instream data

By using PARM parameter:

In JCL

//Stepname EXEC PGM Programname PARM values

By using Instream data:

If it is Non-DB2 program

//SYSIN


 
Is this answer useful? Yes | No
December 21, 2006 15:46:02   #5  
Sodadasi        

RE: can we able to give the inputs to cobol program at...

We can give input to COBOL program in two ways

a) By using PARM parameter

b) By using Instream data

By using PARM parameter:

In JCL

//Stepname EXEC PGM Programname PARM values

By using Instream data:

If it is Non-DB2 program

//SYSIN DD *

instream data...

//

If it is DB2 program

//SYSTSIN DD *

instream data...

//

Thanks

Sodadasi


 
Is this answer useful? Yes | No
January 31, 2007 12:18:49   #6  
Tom Berg        

RE: can we able to give the inputs to cobol program at...
The key is at run-time not BEFORE RUN. The point is can we provide/modify input date when program already started to run?
 
Is this answer useful? Yes | No
May 25, 2007 09:41:29   #7  
kckinney Member Since: May 2007   Contribution: 48    

RE: can we able to give the inputs to cobol program at...
I suppose you could set the program to poll an input file. The difficulty you'd have is that while it isn't polling it's probably looping. That's a good way to get your program swapped out or cancelled.What it sounds like you need is a started task program that remains running and processes input dynamically. If this is what you need we're talking a whole different program structure than JCL kicking off a COBOL job.

RTM kk

 
Is this answer useful? Yes | No
October 26, 2007 01:33:52   #8  
srinivashn82 Member Since: February 2007   Contribution: 8    

RE: can we able to give the inputs to cobol program at...
Using CICS online panels . you can. if it is cobol-CICS
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape