MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cannot Open VSAM File.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
culturewyj
Beginner


Joined: 15 Jun 2006
Posts: 15
Topics: 10

PostPosted: Wed Jul 05, 2006 9:30 am    Post subject: Cannot Open VSAM File. Reply with quote

I have created a ksds vsam file.

Quote:
Data Set Name . . . : PX27.VSAM.EMP

General Data Current Allocation
Volume serial . . . : USER01 Allocated tracks . : 0
Device type . . . . : 3390 Allocated extents . : 0
Organization . . . : VS
Record format . . . : ?
Record length . . . : ?
Block size . . . . : ? Current Utilization
1st extent tracks . : 0 Used tracks . . . . : ?
Secondary tracks . : 0 Used extents . . . : ?

Creation date . . . : 2006/07/06
Referenced date . . : ***None***
Expiration date . . : ***None***


then I define it in cics,and install it.
but i cannot open it.
what 's wrong?
Quote:
I FILE(FILE2)
STATUS: RESULTS - OVERTYPE TO MODIFY
Fil(FILE2 ) Vsa Clo Ena Rea Sha INVALID DSNAME
Dsn( PX27.VSAM.EMP )
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Jul 05, 2006 9:37 am    Post subject: Reply with quote

culturewyj,

You need to load atleast one record in your vsam file before you can open it in CICS. Check this link which explains the reason for that

http://www.mvsforums.com/helpboards/viewtopic.php?p=11349#11349

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
culturewyj
Beginner


Joined: 15 Jun 2006
Posts: 15
Topics: 10

PostPosted: Wed Jul 05, 2006 6:51 pm    Post subject: Reply with quote

I have added two records in the vsam file,but the problem still exists.
Back to top
View user's profile Send private message
shagnwrx
Beginner


Joined: 06 Jul 2006
Posts: 14
Topics: 0
Location: Birmingham, AL

PostPosted: Thu Jul 06, 2006 4:19 pm    Post subject: Reply with quote

Look in the Jes log of the CICS region. You should see some DFHFCnnnn messages that indicate the nature of your error.

Maybe paste those syslog messages in here as well.
_________________
SCCA South East Division RallyCross
Back to top
View user's profile Send private message AIM Address
culturewyj00
Beginner


Joined: 15 Jun 2006
Posts: 14
Topics: 7

PostPosted: Fri Jul 07, 2006 2:34 am    Post subject: Reply with quote

I have solved it like it
cemt s file(file2) open enable
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Fri Jul 07, 2006 5:14 am    Post subject: Reply with quote

culturewyj00,

Some info on CEMT.
CEMT commands to used to inquire about system resources and to allows us to control them.

You can use CEMT for using any of the functions:
1.Discard
2.Inquire
3.Peform
4.Set
You can inquire the status of your File by using:
Code:

CEMT  I FI(FILE2)
STATUS: RESULTS - OVERTYPE TO MODIFY
 Fil(WBVSCUST) Vsa Ope Ena Rea Upd Add Bro Del Sha
Dsn( PROJECT.TEST.FILE2 )

CEMT  Set FIle()                     
 <ALl>                             
 <OPen>     
 <ENabled>             
 <REAd>                   
 <UPdate>               
 <ADdable>             
 <BRowse>               
 <DElete>               
 <EXclusive>         
 <EMptyreq>           
 <OLd>                     
 <DSname>                       
 <Maxnumrecs>                   
 <NOTtable>

Then use the Operation Set to enable the File to Open and Enable which will enable to CICS Application Program to make use of the VSAM KSDS.
Hope it helps.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group