Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Commmand for adding a new record in ksds file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Commmand for adding a new record in ksds file.
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: 276
Location: Bang,iflex

PostPosted: Wed Jun 25, 2008 12:36 pm    Post subject:
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    Post subject:
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: 276
Location: Bang,iflex

PostPosted: Wed Jun 25, 2008 12:58 pm    Post subject:
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    Post subject:
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: 276
Location: Bang,iflex

PostPosted: Wed Jun 25, 2008 1:05 pm    Post subject:
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    Post subject:
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: 276
Location: Bang,iflex

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

Hi,


Please refer this link.

http://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    Post subject:
Reply with quote

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

Active User


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

PostPosted: Wed Jun 25, 2008 4:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us