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
 
Error when trying to open VSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Mekala Shanmugam

New User


Joined: 11 Jun 2009
Posts: 4
Location: India

PostPosted: Fri Oct 30, 2009 6:47 pm    Post subject: Error when trying to open VSAM file
Reply with quote

Hi All,

I have created a VSAM file udsing the below mentioned attributes

AAAA.BBBB.file
AAAA.BBBB.file.data
AAAA.BBBB.file.index

//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=H
//SYSIN DD *
DEFINE CLUSTER +
(NAME(AAAA.BBBB.file') +
CYLINDERS(4 1) +
KEYS(40 0) +
IMBED +
RECORDSIZE(264 32000) +
SHAREOPTIONS(4,3) +
SPEED +
SPANNED +
UNIQUE) +
INDEX(NAME(AAAA.BBBB.file.INDEX') -
) +
DATA(NAME(AAAA.BBBB.file.DATA') -
CISZ(2048) +
FREESPACE(50 50) +
)
/*

//STEP2 EXEC PGM=IDCAMS
//INPUT DD *
/*
//OUTPUT DD DSN=AAAA.BBBB.file,DISP=SHR
//SYSPRINT DD SYSOUT=H
//SYSIN DD *
REPRO INFILE(INPUT) OUTFILE(OUTPUT)
/*
//*


While trying to move the code from one level to another level via SCLM, iam getting the below error as this VSAM file is used for versioning purpose.

FLM04030 - ERROR OPENING PROJECT VSAM DATA SET
GROUP: SYS, DATABASE: VERSION/AUDIT
INTENT: READ, CODE: 12
MACRO: FLMCNTRL
DATA SET: AAAA.BBBB.file
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Fri Oct 30, 2009 6:49 pm    Post subject:
Reply with quote

You cannot REPRO an empty file to initialize a VSAM file -- you must actually write a record into it (which can then be deleted). Until you have done this, you cannot read from it.

And, by the way, IMBED has been obsolete for quite some time and may cause your define to not work under z/OS 1.11 (I haven't confirmed that but I do know the 1.11 announcement talked about IMBED).
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 FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm

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