|
View previous topic :: View next topic
|
| Author |
Message |
sandhya rani
New User
Joined: 05 Dec 2006 Posts: 22 Location: hyderabad
|
|
|
|
Hi,
Iam accessing the vsam file dynamically as follows
| Code: |
SELECT VSAMFILE
ASSIGN TO XXXXX
ORGANIZATION IS INDEXED
ACCESS IS DYNAMIC
RECORD KEY IS NON-RR-CC-KEY
FILE STATUS IS VSAM-CODE.
FD VSAM-FILE
RECORD CONTAINS 200 CHARACTERS
DATA RECORD IS yyy-FILE.
01 yyy-FILE.
05 yyy-KEY.
10 yy-POLICY-KEY PIC X(07).
05 FILLER PIC X(193).
MOVE ZERO TO VSAM-CODE.
OPEN INPUT VSAM-FILE.
|
after opening of file the staus code is 39 ---can u please let me know how this can be solved.
move key-value to vsam-key
START VSAM-FILE KEY IS EQUAL TO
NON-RR-CC-KEY. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Please also post the DEFINE for this file. |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
| Back to top |
|
 |
sandhya rani
New User
Joined: 05 Dec 2006 Posts: 22 Location: hyderabad
|
|
|
|
can you let me know what is define.........[
quote="dick scherrer"]Hello,
Please also post the DEFINE for this file.[/quote] |
|
| Back to top |
|
 |
sandhya rani
New User
Joined: 05 Dec 2006 Posts: 22 Location: hyderabad
|
|
|
|
I already have seen the same description for file-satus 39 but iam need to know what is the exact prob because if i have used access as sequencial for the same file in the same program iam able to open the file successfully and also was able to perform all the operations but the i wanted to decrease the perfromance time so only wanted to use the dynamic access for the same and i was getting the error details which i have mentioned in the initial query.
|
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Bill has posted the exact problem. If you cannot determine the reason from the information, the DEFINE will need to be posted here.
The DEFINE is how the vsam file was created. If you are not familiar with DEFINE, you need to talk to whoever created the file so you can see/post the control statements that created this file. Without the DEFINE, how do you know the record is 200 bytes long - and the key 7? |
|
| Back to top |
|
 |
sandhya rani
New User
Joined: 05 Dec 2006 Posts: 22 Location: hyderabad
|
|
|
|
Hi,
Ya i saw the vsam properties and the length of vsam file and length declared in program matches that is 200 length.
I could solve the problem thaks a lotz for all.
Thanks & regards,
Sandhya Rani
| dick scherrer wrote: |
Hello,
Bill has posted the exact problem. If you cannot determine the reason from the information, the DEFINE will need to be posted here.
The DEFINE is how the vsam file was created. If you are not familiar with DEFINE, you need to talk to whoever created the file so you can see/post the control statements that created this file. Without the DEFINE, how do you know the record is 200 bytes long - and the key 7? |
|
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
If the DEFINE and the code match, what was the problem  |
|
| Back to top |
|
 |
|
|