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

VSAM initialization Error: VSAMFILE is Null


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

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Wed Apr 04, 2007 8:35 pm
Reply with quote

Hi,

I encounter a problem of VSAM.
Here's one job,
STEP1: DEL/DEFINE a new VSAMFILE
STEP2: Use this VSAMFILE as input to run a PGM
Because this VSAMFILE is Null, the opening in PGM is error.
But after viewing this file by STARTOOL, this error can be solved.

Is there any way can solve this problem without initializing this VSAMFILE by HIGH-VALUE or LOW-VALUE, for it's impossible to open this file manually during the running of the job.

Thanks & Best regards,
Ban
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Apr 04, 2007 10:25 pm
Reply with quote

What error do you get, exactly?
Back to top
View user's profile Send private message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Thu Apr 05, 2007 7:21 pm
Reply with quote

Hi William,

My error is open new VSAMFILE as input file failed.
After manually open this file, this job can run successfully.
Is there anyother way can solve this problem without open vsam manually first ?

Thanks & Best regards,
Ban
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 05, 2007 7:25 pm
Reply with quote

I really don't know why so many people are against initialising a KSDS at creation time.

Just a simple job to load a low and high value records would stop all of these problems. It was the way it used to be done when I were a lad.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 05, 2007 7:26 pm
Reply with quote

I agree. Isn't that a normal SOP?
Back to top
View user's profile Send private message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Thu Apr 05, 2007 7:46 pm
Reply with quote

Hi expat,

hehe, I am not against initialising a KSDS, actually it's the business request " P

Best regards,
Ban
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top