Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL Interview Questions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
muthukumarapandian

New User


Joined: 08 Oct 2004
Posts: 42
Location: chennai, india

PostPosted: Wed Mar 09, 2005 7:44 pm    Post subject: JCL Interview Questions
Reply with quote

Hi,

In one interview i faced the following questions

1) How to refer the entire versions of GDG by single specification?

2) what is the diff bet DEST in DD and SYSOUT in DD statements?

3) How to compress the dataset using IEBGENER and IEBCOPY?

4) Can u code job steps inside procedures ? how many steps?

5) If i specify Disp = mod what are the other default sub parameters?
Back to top
View user's profile Send private message

ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Thu Mar 10, 2005 1:43 pm    Post subject:
Reply with quote

1. Just specify the name of the GDG without using generation number i.e.

//IN1 DD DSN=SAMPLE.MYGDG

2 The SYSOUT parameter identifies a data set as a "SYStem OUTput" data
set, consisting of printed output . The SYSOUT parameter names the output class to which the printed output belongs.

The DEST parameter specifies a destination for a SYSOUT data set.
The destination can be a local or remote terminal, a node in the JES
network, a local or remote printer or workstation, or even a TSO
userid. DEST is only valid for a SYSOUT DD statement, and it has to
name a valid destination that is already known to your JES.

3.When COMPRESS is specified in PARM of EXEC statement, then the generated statement is:

COPY OUTDD=SYSUT2,INDD=SYSUT2

which will compress in place the
data set designated by the SYSUT2 DD statement.

//JS10 EXEC PGM=IEBCOPY,REGION=1M
//SYSPRINT DD SYSOUT=*
//I1 DD DSN=my.pds,
// DISP=OLD
//* Same PDS for Input & Output
//O1 DD DSN=my.pds,
// DISP=OLD
//SYSIN DD *
COMP1 C O=O1,I=((I1,R))


5. MOD Indicates one of the following, and that you need non-shared control of the data set:

a) The data set already existed, and that records are to be added to
the end of the data set (for sequential files only)

b) You are creating a new data set

It will check for the dataset if exists it takes MOD otherwise it takes it as NEW.


Bye,
Reddy
Back to top
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Tue Mar 15, 2005 11:46 am    Post subject: Re: JCL Interview Questions
Reply with quote

muthukumarapandian wrote:

5) If i specify Disp = mod what are the other default sub parameters?

Check the JCL Reference Guide:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/12.19.3?SHELF=&DT=20040712170508&CASE=
Back to top
View user's profile Send private message
srividya.srinivasan

New User


Joined: 30 Mar 2005
Posts: 11
Location: Pune, India

PostPosted: Tue May 10, 2005 4:48 pm    Post subject: JCL Interview Questions
Reply with quote

Hi,

I would Like to add on the question related to Disposition.

The Default value for Disp is (NEW,DELETE,DELETE)

and the Default for MOD is (OLD,SHR,SHR).

Regards,
Vidya
Back to top
View user's profile Send private message
notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Tue May 10, 2005 5:24 pm    Post subject:
Reply with quote

Quote:
and the Default for MOD is (OLD,SHR,SHR).


Dear Vidya,

If the DSN is an existing one I think the default will be OLD,KEEP,DELETE

Please correct me if Iam wrong.

Regards
Tanden
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Tue May 10, 2005 7:45 pm    Post subject:
Reply with quote

Quote:
the Default for MOD is (OLD,SHR,SHR).


BUt i think it is OLD KEP KEEP
Thanks
Chandra
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Tue May 10, 2005 7:48 pm    Post subject:
Reply with quote

HI plz refer this
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/12.19.3?SHELF=&DT=20040712170508&CASE=
Back to top
View user's profile Send private message
asridhar

New User


Joined: 04 May 2005
Posts: 5
Location: Hyderabad

PostPosted: Tue May 17, 2005 12:50 pm    Post subject:
Reply with quote

Hi

The default for MOD IS (OLD, KEEP, KEEP)
Back to top
View user's profile Send private message
srividya.srinivasan

New User


Joined: 30 Mar 2005
Posts: 11
Location: Pune, India

PostPosted: Tue May 17, 2005 3:31 pm    Post subject:
Reply with quote

Hi,

i agree with you, its OLD,KEEP,KEEP

Thanks,
Srividya
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts SAS Programming - Basic Questions Techelm All Other Mainframe Topics 3 Fri Mar 18, 2016 10:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us