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

change program to use flat file instead a KSDS file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Mon May 09, 2011 4:58 pm
Reply with quote

Currently the programA is using vsam as its input file. The reqmt is to change the program to use flat file replacing vsam file KSDS.

The changes I made to the program are : 1. removed organisation is indexed, access mode in the select clause 2. removed START key usage in the procedure division during KSDS READ.

Please let me know whether any other changes I need to make to change the program to use flat file replacing vsam file KSDS. LRECL, layouts are same. Only aim is to replace vsam file with the flat file.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon May 09, 2011 5:04 pm
Reply with quote

If the logic of the code depends upon doing direct reads, you may have to rewrite the program from scratch. The mere fact the file layout is the same is so small a factor as to be almost insignificant. Without looking at the code, we will be unable to tell you what other changes would be needed. There are a number of people on this forum who would happily take on that assignment for their usual daily rate (expect to pay 500 to 1000 U.S. dollars per day if you go that route).
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon May 09, 2011 5:09 pm
Reply with quote

Euros not dollars!!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon May 09, 2011 5:16 pm
Reply with quote

Sorry, Dick, next time I'll say dollars or euros!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon May 09, 2011 5:30 pm
Reply with quote

1.00 EUR = 1.43991 USD
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Mon May 09, 2011 5:47 pm
Reply with quote

I'd accept either one. icon_biggrin.gif
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon May 09, 2011 9:56 pm
Reply with quote

radhakrishnan82 wrote:
Currently the programA is using vsam as its input file. The reqmt is to change the program to use flat file replacing vsam file KSDS.

The changes I made to the program are : 1. removed organisation is indexed, access mode in the select clause 2. removed START key usage in the procedure division during KSDS READ.

Please let me know whether any other changes I need to make to change the program to use flat file replacing vsam file KSDS. LRECL, layouts are same. Only aim is to replace vsam file with the flat file.


Like Robert, I think you have more work ahead of you than this. You can't do a keyed read on a flat file. So, if you are reading your KSDS on a key (which it looks like) think some more.

Without knowing much more about what you are doing, we can't provide much of any use to you.

Why don't you want to use the KSDS?

How is the KSDS being used in the program at the moment?
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 3
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 Using API Gateway from CICS program CICS 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top