View previous topic :: View next topic
|
Author |
Message |
bala-lakshmi
New User
Joined: 01 Mar 2004 Posts: 6
|
|
|
|
hi friends,
i've written a program for creating indexed file and writing records into it.the compile jcl and run jcl are giving an error code of 0.but when i open my ps ,nothing is written in it .fs is returning an error code of 95.
the same prg when changed to sequential runs properly.try to solve my problem please.
bye,
lakshmi |
|
Back to top |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
It would be easier to give a clue if you give us the SELECT statement and the file used in JCL.
Looks like there is some problem in file defn.
Regards,
Sandip. |
|
Back to top |
|
|
bala-lakshmi
New User
Joined: 01 Mar 2004 Posts: 6
|
|
|
|
dear sandip,
my select statement is:
SELECT FILE1 ASSIGN TO DDNAME1
ORGANIZATION IS INDEXED
ACCESS MODE IS RANDOM
RECORD KEY IS NUM
bye,
lakshmi |
|
Back to top |
|
|
bluebird
Active User
Joined: 03 Feb 2004 Posts: 127
|
|
|
|
It seems your cobol code is accessing a VSAM file. a KSDS or ESDS I believe, you should define as a VSAM file and not as a PS file (difference is in the access method used by MVS). |
|
Back to top |
|
|
|