Thanks Todd and thanks to all who helped me out.
From: "Burrell, Todd" <[email protected]>
To: [email protected]
Sent: Thursday, February 9, 2017 9:45 AM
Subject: Re: Subject : DCB NECESSSARY?
Here's a sample of the SYSIN for IDCAMS for MODEL - it should allocated the
FARGD dataset just like the WK dataset:
DEF CL(NAME(FARGD.TEST.X790AC.VS.EBDI019.WRKFILE) VOL(HSM010) -
MODEL(WK.X790AC.VS.EBDI019.WRKFILE)) -
CAT(CATALOG.MVSICFM.VBTCTLG)
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of esmie moo
Sent: Thursday, February 09, 2017 9:41 AM
To: [email protected]
Subject: Re: Subject : DCB NECESSSARY?
Todd,
I checked the doc SC26-7394-04 but I didn't see an example for MODEL (section
23). Could you post it if you have one available?
From: "Burrell, Todd" <[email protected]>
To: [email protected]
Sent: Thursday, February 9, 2017 8:38 AM
Subject: Re: Subject : DCB NECESSSARY?
Why not use either MODEL (IDCAMS SYSIN) or LIKE (JCL)? That ensures that the
new file is allocated with the same specs as the old file unless you override
something in your JCL (like space).
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of esmie moo
Sent: Thursday, February 09, 2017 7:42 AM
To: [email protected]
Subject: Subject : DCB NECESSSARY?
Gentle Readers,
I would like to reorganise the HSM cds dsns - MCDS, BCDS & OCDS - using the
IDCAMS EXPORT parm. My question is when I preallocate the dsn to which I want
to export to do I need to specify the LRECL & BLKSIZE?
Here is a part of the job:
//STEP1 EXEC PGM=IEFBR14 //EXPMCDS DD
DSNAME=SYS2.COPY.MCDS,UNIT=SYSALLDA,//
DISP=(NEW,CATLG),SPACE=(CYL,(3000,150)) //EXPBCDS DD
DSNAME=SYS2.COPY.BCDS,UNIT=SYSALLDA,//
DISP=(NEW,CATLG),SPACE=(CYL,(3000,150)) //EXPOCDS DD
DSNAME=SYS2.COPY.OCDS,UNIT=SYSALLDA,//
DISP=(NEW,CATLG),SPACE=(CYL,(2000,100)) /*//STEP2 EXEC
PGM=IDCAMS,COND=(0,NE,ALLOC)//SYSPRINT DD SYSOUT=*
//SYSIN DD * EXPORT SYS2.HSM.PROD.MCDS
ODS(SYS2.COPY.MCDS) TEMPORARY EXPORT SYS2.HSM.PROD.BCDS ODS(SYS2.COPY.BCDS)
TEMPORARY
EXPORT SYS2.HSM.PROD.OCDS ODS(SYS2.COPY.OCDS) TEMPORARY etc etc etc etc..
Would this work? My uncertainty is that I remember seeing an example where the
LRECL & BLKSIZE are specified.
Thanks.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
This email transmission and any accompanying attachments may contain CSX
privileged and confidential information intended only for the use of the
intended addressee. Any dissemination, distribution, copying or action taken in
reliance on the contents of this email by anyone other than the intended
recipient is strictly prohibited. If you have received this email in error
please immediately delete it and notify sender at the above CSX email address.
Sender and CSX accept no liability for any damage caused directly or indirectly
by receipt of this email.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN