Search the web
Sign In
New User? Sign Up
os390andmvs · OS390 and MVS - For z/OS, OS/390 and MVS System Programmers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ADRDSSU problems   Message List  
Reply | Forward Message #598 of 637 |
Re: ADRDSSU problems

--- In os390andmvs@yahoogroups.com, David.L.Hansen@... wrote:
>
>
> Hello Group,
>
> I am having trouble with ADRDSSU restoring a file to a different name
> .
> I used this JCL to back up a VSAM file to a 'flat' file as
referenced by the TAPE DD:
> DUMP DS(INCLUDE(SYTCBV.DATA.CLSS147.RLSTDB.KSDS)) -
> OUTDDNAME(TAPE) -
> ALLDATA(*) -
> ALLEXCP -
> CANCELERROR -
> CONCURRENT -
> NOTIFYCONCURRENT -
> OPTIMIZE(4) -
> SPHERE -
> TOLERATE(ENQFAILURE) -
> WAIT(0,0)
>
> I tried this JCL to restore the 'flat' file:
> RESTORE INDDNAME(TAPE) -
> DATASET(INCLUDE(SYTCBV.DATA.CLSS147.RLSTDB.KSDS)) -
>
RENUNC(SYTCBV.DATA.CLSS147.RLSTDB.*,SYTCOV.DATA.CLSS147.RLSTDB.*) -
> CANCELERROR -
> SPHERE -
> TOLERATE(ENQFAILURE) -
> WAIT(0,0)
>
> I keep getting this error: ADR730W (001)-FDSRL(01), CLUSTER
SYTCBV.DATA.CLSS147.RLSTDB.KSDS IS OPEN
>
> First I tried to restore to OUTDDNAME and put a DD in that
> referenced SYTCOV. It still tried to go out to SYTCBV.
>
> What is the best way to backup a VSAM file to a flat file and then
> restore it back? I would like to restore it to something else first
> as a test.

Dave, I use IDCAMS to export a VSAM file to a flat/portable format.
Then IDCAMS to import the VSAM file into the new system/catalog. I
always run a DEFINE to create the empty file with the right
characteristics to import the file into. I believe that you can run
the IMPORT without pre-allocating the file, but that's just not how I
do it.

/*
//STEP1 EXEC PGM=IDCAMS
//********************************************************

//* SAMPLE JCL TO EXPORT A VSAM FILES

//********************************************************
//FLATFILE DD DSN=COMPTON.PORTABLE.VSAMFILE,UNIT=SYSDA,
// DISP=(NEW,CATLG),BLKSIZE=6000,
// SPACE=(CYL,5)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EXPORT -
COMPTON.MASTER.WORKSHOP.VSAMFILE -
OUTFILE(FLATFILE) -
TEMPORARY
/*
..........

//DEFINE EXEC PGM=IDCAMS,REGION=2M
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
DEFINE CL(NAME(COMPTON.CICSNEW.VSAMFILE) -
CYLINDERS(1 1) -
VOLUMES(DMPP01) -
KEYS(17 0) -
RECORDSIZE(80 80) -
SHR(1 3) -
FSPC(10 10)) -
DATA -
(CISZ(4096)) -
INDEX -
(CISZ(512))
/*
//IMPORT EXEC PGM=IDCAMS
//SOURCE1 DD DSNAME=COMPTON.PORTABLE.VSAMFILE,DISP=OLD
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
IMPORT -
INFILE(SOURCE1) -
OUTDATASET(COMPTON.CICSNEW.VSAMFILE) -
OBJECTS ( -
( COMPTON.MASTER.WORKSHOP.VSAMFILE -
NEWNAME(COMPTON.CICSNEW.VSAMFILE) -
STORAGECLASS(BASE) -
MANAGEMENTCLASS(STANDARD) -
VOLUMES(DMPP01) ) -
( COMPTON.MASTER.WORKSHOP.VSAMFILE.DATA -
NEWNAME(COMPTON.CICSNEW.VSAMFILE.DATA) -
STORAGECLASS(BASE) -
MANAGEMENTCLASS(STANDARD) -
VOLUMES(DMPP01) ) -
( COMPTON.MASTER.WORKSHOP.VSAMFILE.INDEX -
NEWNAME(COMPTON.CICSWWW.SUPTPAC.VSADFLFC.INDEX) -
STORAGECLASS(BASE) -
MANAGEMENTCLASS(STANDARD) -
VOLUMES(DMPP01) ) -
) -
INTOEMPTY
/*




Mon Jan 21, 2008 9:47 pm

flakyredhead
Offline Offline
Send Email Send Email

Forward
Message #598 of 637 |
Expand Messages Author Sort by Date

Hello Group, I am having trouble with ADRDSSU restoring a file to a different name . I used this JCL to back up a VSAM file to a 'flat' file as referenced by...
David.L.Hansen@...
hennepin_county
Offline Send Email
Jan 18, 2008
3:12 am

... RENUNC(SYTCBV.DATA.CLSS147.RLSTDB.*,SYTCOV.DATA.CLSS147.RLSTDB.*) - ... SYTCBV.DATA.CLSS147.RLSTDB.KSDS IS OPEN ... Dave, I use IDCAMS to export a VSAM...
flakyredhead
Offline Send Email
Jan 24, 2008
10:20 pm

Hi, Thank you for your response. I am new to ADRDSSU and found it 'interesting'. I was trying to get away from ADRDSSU renaming the '.index' and '.data' to...
David.L.Hansen@...
hennepin_county
Offline Send Email
Jan 25, 2008
8:55 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help