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

Any way to pass parameter to the cobol program


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

New User


Joined: 12 Apr 2008
Posts: 36
Location: NOIDA

PostPosted: Wed Mar 25, 2009 12:41 pm
Reply with quote

Hi,

I have one query like is there any way to pass parameter to the cobol program other than passing through PARM in jcl and declaring it in Linkage section.

It was asked in interview that is there any other way to pass parameter to program.

Thanks
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Mar 25, 2009 1:10 pm
Reply with quote

Hi,

you can always use a DDname which you need to define in the program.


Gerry
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 Mar 25, 2009 3:49 pm
Reply with quote

I can't count the number of times I've seen this same question posted. It looks like a trick question, since the actual one answer is supposed to be disregarded. It would really be nice if someday someone would post what the actual expected answer is.
Back to top
View user's profile Send private message
Succor

New User


Joined: 20 Feb 2009
Posts: 96
Location: Bangalore :)

PostPosted: Wed Mar 25, 2009 3:52 pm
Reply with quote

How about In JCL
Code:

//SYSIN DD *
data for X
In Prog
Code:
Accept X
....And like files even Db2 Tables can be a source of data.

WTF
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 Using API Gateway from CICS program CICS 0
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
Search our Forums:

Back to Top