IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Not able to export the VSAM cluster


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandeep kumar302

New User


Joined: 14 Mar 2012
Posts: 81
Location: India

PostPosted: Fri May 04, 2018 12:42 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri May 04, 2018 2:06 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri May 04, 2018 2:17 pm
Reply with quote

did anybody care to look at the manuals for the meaning of
Quote:
IEF210I BACKUP1 BKP11 OUTP - UNIT FIELD SPECIFIES INCORRECT DEVICE NAME

icon_question.gif icon_evil.gif
Back to top
View user's profile Send private message
sandeep kumar302

New User


Joined: 14 Mar 2012
Posts: 81
Location: India

PostPosted: Fri May 04, 2018 2:36 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri May 04, 2018 2:40 pm
Reply with quote

// SPACE=(CYL,(2,3),RLSE),

Space parameter for tape?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri May 04, 2018 6:42 pm
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Sat Jun 09, 2018 8:55 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top