Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Not able to export the VSAM cluster

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Not able to export the VSAM cluster
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: 2091
Location: UK

PostPosted: Fri May 04, 2018 2:06 pm    Post subject: Reply to: Not able to export the VSAM cluster
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

Senior Member


Joined: 14 Mar 2007
Posts: 10516
Location: italy

PostPosted: Fri May 04, 2018 2:17 pm    Post subject: Reply to: Not able to export the VSAM cluster
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    Post subject:
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: 2461
Location: Netherlands, Amstelveen

PostPosted: Fri May 04, 2018 2:40 pm    Post subject:
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: 8391
Location: Dubuque, Iowa, USA

PostPosted: Fri May 04, 2018 6:42 pm    Post subject: Reply to: Not able to export the VSAM cluster
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 User


Joined: 31 Dec 2009
Posts: 463
Location: London

PostPosted: Sat Jun 09, 2018 8:55 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts VSAM Space allocated and used space ... upendrasri JCL & VSAM 4 Tue Sep 04, 2018 4:29 pm
No new posts How to manage VSAM file update confli... ocjohnh JCL & VSAM 2 Sat Jul 21, 2018 6:04 am
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 12 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us