hiii,
i m confused with the accessing of the ksds file randomly in cobol...
how to use select statement...
how it works...
what is the meaning of file status here.
nd here..
select
access to dd name..
organization is indexed
access mode is random..
record key is .......... what shud be here... and for what reason...
file status...?? what is file status.. nd why it is required... here....
how to access a ksds file randomly....
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: how to access a ksds file randomly....
what have you been reading to get confused? Suggest you read the COBOL manual or a COBOL book and all these things will be explained. Actually, just scanning the manual it looks quite clear.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: how to access a ksds file randomly....
The record key will be the variable in the FD 01 that matches the starting position and length of the VSAM file key. If your VSAM DEFINE says the record key is (17 0) then you need in the 01 under the FD for the file a variable name for the first 17 bytes of the record -- and that variable name goes in the RECORD KEY IS clause.
And you really, really, really need to spend time reading the COBOL manuals (the IBM web site has them available if you have no other source). File status is not required -- it is optional. However, it provides (especially when using the extended form for VSAM files) a lot of useful information about what happened when something doesn't work correctly.
And you really, really, really need to spend time reading the COBOL manuals (the IBM web site has them available if you have no other source). File status is not required -- it is optional. However, it provides (especially when using the extended form for VSAM files) a lot of useful information about what happened when something doesn't work correctly.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 1623
-
by aarvalar1
View the latest post
Mon Sep 09, 2024 7:21 pm
-
- 1
- 1251
-
by sergeyken
View the latest post
Wed Feb 07, 2024 11:48 pm
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4948
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4411
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
Need to check whether file is ESDS file or not by using REXX
by Devrana » Sat Oct 05, 2024 2:28 pm » in CLIST & REXX - 6
- 3070
-
by sergeyken
View the latest post
Tue Oct 08, 2024 5:25 pm
-