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 the cobol program look like when we r using ksds?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
babun

New User


Joined: 03 Aug 2005
Posts: 9
Location: bangalore

PostPosted: Wed Aug 03, 2005 12:41 pm    Post subject: how the cobol program look like when we r using ksds?
Reply with quote

how the cobol program look alike when we r using Vsam ksds? what r all the necessary action on cobol pgm?
Back to top
View user's profile Send private message

babun

New User


Joined: 03 Aug 2005
Posts: 9
Location: bangalore

PostPosted: Wed Aug 03, 2005 12:44 pm    Post subject: can we use SELECT * FROM ------; query in Embedded SQL?
Reply with quote

can we use SELECT * FROM ------; query in Embedded SQL? if we can why ? if we can't why?
pls let me know folks?
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Wed Aug 03, 2005 3:13 pm    Post subject:
Reply with quote

hi
babum

when you are using ksds

the main consideration on

file control

select filename assign to jcldd
organiztion is indexed
access mode sequential/random/dynamic
record key is file-key-field
alternate key is file-alternate-key field.


if it is sequential access no bother of record key and alternate key.

thanks,
thanooz.
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Wed Aug 03, 2005 3:24 pm    Post subject:
Reply with quote

hi babu

we cont in embeded sql. because it gives error.
Back to top
View user's profile Send private message
Ravi Gopal

New User


Joined: 04 Aug 2005
Posts: 3

PostPosted: Thu Aug 04, 2005 12:04 pm    Post subject: can we use SELECT * FROM ------; query in Embedded SQL?
Reply with quote

Hi Babun,

The reason for not using SELECT * FROM query in the program is:

1.If the table structure is changed (a field is added), the program will have to be modified.

2.Program might retrieve the columns which it might not use, leading on I/O over head.


Cheers
Ravi
Back to top
View user's profile Send private message
babun

New User


Joined: 03 Aug 2005
Posts: 9
Location: bangalore

PostPosted: Thu Aug 04, 2005 12:32 pm    Post subject: Hi
Reply with quote

Thanks ravi
thank you for your answer..
it's clear
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Thu Aug 04, 2005 8:56 pm    Post subject:
Reply with quote

hi babu

For three reasons:
If the table structure is changed (a field is added), the program will have to be modified
Program might retrieve the columns which it might not use, leading on I/O over head.
The chance of an index only scan is lost.

thanks,
thanooz.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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