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

JCL Interview Questions


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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: 84
Location: In my tiny cubicle ...

PostPosted: Tue Mar 15, 2005 11:46 am
Reply with quote

muthukumarapandian wrote:

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

Check the JCL Reference Guide:

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
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
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
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
Reply with quote

HI plz refer this
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Comp interview questions Mainframe Interview Questions 5
No new posts Interview Questions on Cobol DB2 program Mainframe Interview Questions 5
No new posts The Last Two Question For You To Ask ... Mainframe Interview Questions 0
No new posts Mainframe Interview Questions CICS,CO... Mainframe Interview Questions 6
No new posts Viewing executing process in NDM .. q... IBM Tools 0
Search our Forums:

Back to Top