Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VSAM initialization Error: VSAMFILE is Null

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: VSAM initialization Error: VSAMFILE is Null
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: 3158
Location: Tucson AZ

PostPosted: Wed Apr 04, 2007 10:25 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 05, 2007 7:25 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Apr 05, 2007 7:26 pm    Post subject: Re: VSAM initialization Error: VSAMFILE is Null
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    Post subject:
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    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 Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us