|
View previous topic :: View next topic
|
| Author |
Message |
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
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 |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| What error do you get, exactly? |
|
| Back to top |
|
 |
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
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 |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| I agree. Isn't that a normal SOP? |
|
| Back to top |
|
 |
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
Hi expat,
hehe, I am not against initialising a KSDS, actually it's the business request " P
Best regards,
Ban |
|
| Back to top |
|
 |
|
|