How can you get the ksds file records into your cobol program?
Answer / Vivek Srivastava
You can use the KSDS fileset descriptor to access KSDS files in a COBOL program. Here's an example:nn 01 my-fileset PIC X(8) VALUE 'KSDS'. nn The KSDS fileset descriptor should be defined before the WORKSPACE or DATA DIVISION.
| Is This Answer Correct ? | 0 Yes | 0 No |
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
What is the difference between COMP & COMP-3 ?
Whats the difference between search & search ALL?
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.
I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.
What do you understand by psb and acb?
Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.
u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?
how to know that the file has 300 records how to acess it?
Explain about different table spaces.
How to concatenation one or more string?
How can you declare the file ?