Page 1 of 1

iehprogm

PostPosted: Wed Dec 19, 2007 4:04 pm
by ravi30
//HERC01P JOB (HERC01),'IEHPROGM',CLASS=A,MSGCLASS=X,
// MSGLEVEL=(1,1),NOTIFY=HERC01
//*
//STEP010 EXEC PGM=IEHPROGM,REGION=1024K
//*
//SYSPRINT DD SYSOUT=X
//DD1 DD UNIT=3350,VOL=SER=TMP000,DISP=OLD
//*
//SYSIN DD *
CATLG DSNAME=HERC01.TEMP.SOURCE,VOL=3350=TMP000
/*


here what does the dd1 and catlg statements imply exactly?

Re: iehprogm

PostPosted: Wed Dec 19, 2007 11:10 pm
by dick scherrer
Hello,

dd1 - where to perform the specified operation
catlg - specifies what operation to perform

Re: iehprogm

PostPosted: Thu Dec 20, 2007 10:27 pm
by ravi30
so what abt the vol=ser=tmp000
does it tell that the particular dataset should be stored in tmp000 volume of the unit 3350. if so do we have to provide the volume in both the statements.
thanx

Re: iehprogm

PostPosted: Thu Dec 20, 2007 10:40 pm
by dick scherrer
Hello,

so what abt the vol=ser=tmp000

That is what IEHPROGM expects.

does it tell that the particular dataset should be stored in tmp000 volume of the unit 3350

It says to create a catalog entry pointing to tmp000 for the named dataset - it does not create the dataset.

if so do we have to provide the volume in both the statements.

If you try to use IEHPROGM, you must specify both.

IEHPROGM is not a good tool for normal use. Creating/cataloging datasets is better done with jcl or tso/ispf.