IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Commmand for adding a new record in ksds file.


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 25, 2008 12:13 pm
Reply with quote

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
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Wed Jun 25, 2008 12:36 pm
Reply with quote

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
View user's profile Send private message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 25, 2008 12:44 pm
Reply with quote

is it possible to add a record through write command....
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Wed Jun 25, 2008 12:58 pm
Reply with quote

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
View user's profile Send private message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 25, 2008 1:03 pm
Reply with quote

is it possible to add a file through exec cics write
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Wed Jun 25, 2008 1:05 pm
Reply with quote

Hi,


Of course you can do it.
Back to top
View user's profile Send private message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 25, 2008 3:03 pm
Reply with quote

how?
can u tell the full command
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Wed Jun 25, 2008 3:40 pm
Reply with quote

Hi,


Please refer this link.

publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp?topic=/com.ibm.cics.ts31.doc/dfhp4/commands/dfhp4_writejournalname.htm
Back to top
View user's profile Send private message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 25, 2008 4:38 pm
Reply with quote

thank you.....
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Wed Jun 25, 2008 4:49 pm
Reply with quote

Is that link worked for you........... icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top