|
View previous topic :: View next topic
|
| Author |
Message |
sandeep kumar302
New User
.jpg)
Joined: 14 Mar 2012 Posts: 81 Location: India
|
|
|
|
Hi,
I just wanted to explore how 'EXPORT' in VSAM KSDS works and I am trying this -
| Code: |
//BKP11 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//OUTP DD DSN=TAPE2,
// UNIT=(TAPE,,DEFER),
// DISP=NEW,VOL=SER=003030,
// SPACE=(TRK,(2,3),RLSE),
// DCB=(BLKSIZE=6000,DEN=3),LABEL=(1,SL)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
EXPORT -
TP0001.KSDS.CLUSTER1 -
OUTFILE(OUTP) -
TEMPORARY -
INHIBITSOURCE
/*
//*
|
but it gives me a JCL error-
| Code: |
IEF210I BACKUP1 BKP11 OUTP - UNIT FIELD SPECIFIES INCORRECT DEVICE NAME
IEF272I BACKUP1 BKP11 - STEP WAS NOT EXECUTED.
|
I heard that EXPORT will take a backup to a tape file only. Is it true?
Is it possible that the error is due to accessing TAPE and I might not be allowed to access TAPE? I am not able to figure out if accessing TAPE is causing the error.
What I did is, I removed the tape parameter as below -
| Code: |
//BKP11 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//OUTP DD DSN=TP0001.BACKUP,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(2,3),RLSE),
// DCB=(DSORG=PS,LRECL=80,BLKSIZE=4700)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
EXPORT TP0001.KSDS.CLUSTER -
OUTFILE(OUTP) -
TEMPORARY
/*
//*
|
and I get MAXCC=0 in this case but the problem is I am not able to view the file - TP0001.BACKUP.
The error which I get while opening this file in 3.4 - Invalid Record format.
I even coded RECFM=FB and RECFM=VB and RECFM=U but still not able to open the file in 3.4
so the first issue is -
1) Related to UNIt=TAPE
2) If I remove the UNIT=TAPE and create a sequential file, I am able to successfully create the file but not able to open the file using option 3.4.
Can someone please confirm if we can open the portable file after EXPORT using option 3.4? |
|
| Back to top |
|
 |
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Perhaps TAPE is not a valid unit type in your place. Where did you get the "TAPE" from?
Once the data is on tape you cannot open it on ISPF because - without special software, you cannot use tapes in ISPF.
For your data set (not 'file') on dasd, what does 3.2 or options I or S in 3.4 show you for the data set characteristics?
You did not get a "MAXCC=0" you got a return code of 0. |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
did anybody care to look at the manuals for the meaning of
| Quote: |
IEF210I BACKUP1 BKP11 OUTP - UNIT FIELD SPECIFIES INCORRECT DEVICE NAME
|
 |
|
| Back to top |
|
 |
sandeep kumar302
New User
.jpg)
Joined: 14 Mar 2012 Posts: 81 Location: India
|
|
|
|
Yes, I saw the manuals and this is what manual says -
| Code: |
Explanation
In a DD statement, the unit name subparameter in the UNIT parameter was incorrect:
The unit is not defined to the current system configuration, or a demand request for a unit being added to the configuration occurred prior to the dynamic configuration change completing.
If the DD statement specified a cataloged data set, the unit field in the catalog entry is incorrect.
The DD statement did not contain a UNIT parameter for a non-cataloged, non-passed data set.
The DD statement did not contain a DISP parameter, indicating a new data set, and did not contain a UNIT parameter, indicating an old dataset.
|
| Code: |
Programmer response
Correct the unit name subparameter. Submit the job again.
|
but I am not sure whether UNIT=TAPE is causing the issue because when I remove this UNIt=TAPE, there is no issue with sequential files.
I guess I have to code the correct value of volume serial number of TAPE but I am not sure where I can get the value of volume serial number in TAPE. |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
// SPACE=(CYL,(2,3),RLSE),
Space parameter for tape? |
|
| Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
| Quote: |
| I heard that EXPORT will take a backup to a tape file only. Is it true? |
You heard incorrectly. EXPORT writes to a sequential data set, which means tape or disk can be used.
| Quote: |
//OUTP DD DSN=TAPE2,
// UNIT=(TAPE,,DEFER),
// DISP=NEW,VOL=SER=003030,
// SPACE=(TRK,(2,3),RLSE),
// DCB=(BLKSIZE=6000,DEN=3),LABEL=(1,SL) |
This JCL is highly suspicious -- for new tapes, most sites do not allow you to overwrite an existing tape such as 003030 but rather require you to use a scratch volume. Furthermore, tapes do NOT use SPACE parameters. And why code DEN=3 on it since that is a 9-track tape parameter and most sites have not used 9-track tapes in 20+ years? |
|
| Back to top |
|
 |
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 600 Location: London
|
|
|
|
Ask your site Storage Admin people what the correct TAPE unit name is. These are usually what's called an ESOTERIC unit name which allocates any of the specific tape units defined within it, but the esoteric names are site specific so can be anything. Ask!
You may also need to code EXPDT or RETPD on the JCL depending on the Tape Management Subsystem in use, and whether you want to retain the backup. Most places just delete a tape created as DISP=NEW after a few days by default, so you need to code DISP=(,CATLG) usually, which also helps you find it again with a catalog search. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|