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

What are GSAM & QSAM


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

New User


Joined: 12 Aug 2008
Posts: 41
Location: chennai

PostPosted: Thu Aug 14, 2008 1:42 pm
Reply with quote

What are GSAM and QSAM accessing methods? How do they differ from VSAM?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Aug 14, 2008 2:06 pm
Reply with quote

ibmmainframes.com/archive/o_t__t_2276__start_0__index.html
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 14, 2008 4:01 pm
Reply with quote

Hi,

Further, In IBM mainframe OS, a queued sequential access method (QSAM) is one of the access methods for files. QSAM files are unkeyed, with the records placed one after another, according to entry order. A program can process these files only sequentially, retrieving (with the READ statement or GET macro instruction) records in the same order as they are in the file. Each record is placed after the preceding record.

QSAM files can be on tape, direct access storage devices (DASDs), unit-record devices, and terminals. QSAM processing is best for tables and intermediate storage.

From COBOL point of view, to process QSAM files in a program, a programmer could use COBOL language statements that identify and describe the QSAM files in the ENVIRONMENT DIVISION and the DATA DIVISION.

After a record is created, its length or its position in the file cannot be changed, and it cannot be deleted. QSAM files can, however, be updated on DASD (using REWRITE). The record definitions that are coded in COBOL program and the length of the variables read into and written from determines the amount of data transferred.
Back to top
View user's profile Send private message
Young zhang

New User


Joined: 13 Jun 2008
Posts: 15
Location: china

PostPosted: Fri Aug 15, 2008 12:54 pm
Reply with quote

Oh!! hi guys, this is a good question!! I will learn it a lot.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 18, 2008 2:26 pm
Reply with quote

Hi,
anand tr wrote:
..How do they differ from VSAM?
Just re-read the question again, hopefully you are aware about VSAM, in case you are not, click on this text..
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 18, 2008 2:31 pm
Reply with quote

Hi Young,
Young zhang wrote:
Oh!! hi guys, this is a good question!! I will learn it a lot.
Just surf aroung the forum a little, you will find many more such threads..enjoy being one of the learner of Mainframes.. icon_smile.gif
Back to top
View user's profile Send private message
Young zhang

New User


Joined: 13 Jun 2008
Posts: 15
Location: china

PostPosted: Mon Aug 18, 2008 3:13 pm
Reply with quote

Anuj D. wrote:
Hi Young,
Young zhang wrote:
Oh!! hi guys, this is a good question!! I will learn it a lot.
Just surf aroung the forum a little, you will find many more such threads..enjoy being one of the learner of Mainframes.. icon_smile.gif

Yes. icon_biggrin.gif
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 Edit large number of datasets (QSAM) TSO/ISPF 3
No new posts Writing on to GSAM variable length JCL & VSAM 6
No new posts GSAM from IMS online IMS DB/DC 4
No new posts GSAM conversion in IMS DB to DB2 migr... IMS DB/DC 2
No new posts Capture Input GDG base names into QSA... DFSORT/ICETOOL 2
Search our Forums:

Back to Top