View previous topic :: View next topic
|
Author |
Message |
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
i have to read a record from cics and write it into file...
can u tell me commmand for adding a new record in ksds file... |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
It is very simple,
STEP01: Read the record using cics control statement EXEC CICS READ
STEP02: Open the file(KSDS) in I/O mode, Populate the data in to the variables(local or directly to the file structure) of ksds.
STEP03: use MOVE statement if you are using local variables.
STEP04: the end
If the KSDS file is used by both online and batch, then you have to look for share options. |
|
Back to top |
|
|
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
is it possible to add a record through write command.... |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hello,
Yes, you can do that, thats y you should open the KSDS dataset in I/O mode, file will be updated in the order(ascending) automatically. |
|
Back to top |
|
|
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
is it possible to add a file through exec cics write |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
Of course you can do it. |
|
Back to top |
|
|
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
how?
can u tell the full command |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
Back to top |
|
|
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
thank you..... |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Is that link worked for you........... |
|
Back to top |
|
|
|