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

Files in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Shriram Jogdand

New User


Joined: 14 Oct 2008
Posts: 65
Location: Pune

PostPosted: Tue Nov 24, 2009 12:14 pm
Reply with quote

Hi,

Suppose we are calling one program in JCL. That program is accessing only two files but in JCL we have specified five files. What will happen in this case?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Nov 24, 2009 12:27 pm
Reply with quote

Why dont you try it on your own and lets us know if anything you are not clear with?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 24, 2009 12:37 pm
Reply with quote

Or at least tell us what youi think will happen, and why
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 24, 2009 5:42 pm
Reply with quote

Quote:
we are calling one program in JCL
JCL, by definition, does not have the ability to CALL something, it merely executes the program(s)... and as exapt has mentioned many times before, JCL by itself does nothing. It is used to invoke (not CALL) the chosen program and to define which datasets are to be used by the DD names associated with the chosen program.

Well, if your question is to do with COBOL batch programming, have a look on
Code:
SELECT filename ASSIGN TO DDname.
and try to understand why they are used?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Nov 24, 2009 9:52 pm
Reply with quote

Another interview question?
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top