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

How to find Whether a flat file is used or VSAM file is used


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hariharan_b83
Currently Banned

New User


Joined: 24 Jun 2006
Posts: 5
Location: india

PostPosted: Tue Mar 20, 2007 6:21 pm
Reply with quote

How can we get to know whether a flat file is used or VSAM file is used inside the program?
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Tue Mar 20, 2007 6:59 pm
Reply with quote

If the file in the program used has a select statement like the below
For KSDS
Code:
SELECT <file>  ASSIGN    TO  <filename>
       ORGANIZATION  IS INDEXED         
       ACCESS MODE   IS RANDOM         
       RECORD KEY    IS <key field>   
       FILE STATUS   IS < file status flag>. 


For RRDS
Code:
SELECT <file>  ASSIGN <filename>               
                   ORGANIZATION IS RELATIVE           
                   ACCESS MODE  IS RANDOM             
                   RELATIVE KEY IS RECORD-NUMBER     
                   FILE STATUS  IS <file status flag>.


For Sequential
Code:
SELECT <file>  ASSIGN <filename>           
                  FILE STATUS <file status flag>.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
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
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top