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
 

 

How to manipulate record by using key?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Thirumurgann

New User


Joined: 13 Feb 2008
Posts: 36
Location: India

PostPosted: Mon Jun 02, 2008 7:56 pm    Post subject: How to manipulate record by using key?
Reply with quote

How to manipulate records by using a key in COBOL.

Thanks,
Thiru
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Jun 02, 2008 8:08 pm    Post subject: Re: How to manipulate Record by using key?
Reply with quote

icon_question.gif icon_question.gif icon_question.gif icon_question.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 02, 2008 10:17 pm    Post subject:
Reply with quote

Hello Thiru,

Please rephrase your question and show some data examples. Show what you "have" (input) and what you want to do with what you have (result/output).

While your question is clear to you, it is not clear to everyone who has read it.

Once you clarify what you want/need, we can offer suggestions.

It may help if you define your meaning of manipulate - typically records are read or written. If these are vsam files, mention this also.
Back to top
View user's profile Send private message
Sinkaravelan S

New User


Joined: 21 Apr 2008
Posts: 27
Location: coimbatore-TN india

PostPosted: Tue Jun 03, 2008 3:29 pm    Post subject: Reply to: How to manipulate record by using key?
Reply with quote

I think, You are asking about extract records from db thru key..right?..

if yes then search your db which one is your primary key field..

if my answer is wrong then pls give some more detail abt your queries..
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


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

PostPosted: Tue Jun 03, 2008 3:55 pm    Post subject:
Reply with quote

Assuming the question, using a COBOL program you can access the file like VSAM KSDS file, which comprises of key field using such key as a search field manipulate (update,delete,read,append....etc) accordingly.
Back to top
View user's profile Send private message
Thirumurgann

New User


Joined: 13 Feb 2008
Posts: 36
Location: India

PostPosted: Tue Jun 03, 2008 4:30 pm    Post subject:
Reply with quote

Hi friends, My querry is how the records are mapped in to key fields.

For Eg, In below code Key is EXT-KEY. How it is pointing to the particular record.Much confused about Acessing files by ket field...

SELECT F001EXT ASSIGN TO IF001EXT
ORGANIZATION IS INDEXED
ACCESS IS DYNAMIC
RECORD KEY IS EXT-KEY
FILE STATUS IS EXT-STAT.

Thanks for sugessions
Regards,
Thiru
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


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

PostPosted: Tue Jun 03, 2008 4:44 pm    Post subject:
Reply with quote

HELLO,

Quote:

SELECT F001EXT ASSIGN TO IF001EXT
ORGANIZATION IS INDEXED
ACCESS IS DYNAMIC
RECORD KEY IS EXT-KEY
FILE STATUS IS EXT-STAT.


The above statements are declaration EXT-KEY is not pointing to any record that you have to populate in the procedure division of the cobol program and read randomly or dynamically.

For more infosearch in google or in manuals above this page in this forum if you are new to COBOL
Back to top
View user's profile Send private message
Thirumurgann

New User


Joined: 13 Feb 2008
Posts: 36
Location: India

PostPosted: Tue Jun 03, 2008 7:55 pm    Post subject:
Reply with quote

Thanks Visanth
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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