View previous topic :: View next topic
|
Author |
Message |
muthukumarapandian
New User
Joined: 08 Oct 2004 Posts: 42 Location: chennai, india
|
|
|
|
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 |
|
|
ovreddy
Active User
Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
|
|
|
|
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 |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
Back to top |
|
|
srividya.srinivasan
New User
Joined: 30 Mar 2005 Posts: 11 Location: Pune, India
|
|
|
|
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 |
|
|
notonly4u
New User
Joined: 26 Apr 2005 Posts: 87 Location: Hyderabad
|
|
|
|
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 |
|
|
learnmf
Active User
Joined: 14 Mar 2005 Posts: 123
|
|
|
|
Quote: |
the Default for MOD is (OLD,SHR,SHR). |
BUt i think it is OLD KEP KEEP
Thanks
Chandra |
|
Back to top |
|
|
learnmf
Active User
Joined: 14 Mar 2005 Posts: 123
|
|
Back to top |
|
|
asridhar
New User
Joined: 04 May 2005 Posts: 5 Location: Hyderabad
|
|
|
|
Hi
The default for MOD IS (OLD, KEEP, KEEP) |
|
Back to top |
|
|
srividya.srinivasan
New User
Joined: 30 Mar 2005 Posts: 11 Location: Pune, India
|
|
|
|
Hi,
i agree with you, its OLD,KEEP,KEEP
Thanks,
Srividya |
|
Back to top |
|
|
|