GSAM files in IMS



IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)

GSAM files in IMS

Postby venubhat » Mon Jul 28, 2014 10:27 pm

Hi Guys

I am new to IMS. So need to know regarding GSAM files. and how to access/browse an existing GSAM. Do we need to login to IMS to access them...?? basically all I want to know is starting from creating a GSAM till creating one and have records written onto it.

thanks
venu
venubhat
 
Posts: 14
Joined: Mon Jul 14, 2014 4:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: GSAM files in IMS

Postby NicC » Tue Jul 29, 2014 12:26 am

GSAM files are ordinary sequential files. You can create and read them like any other sequential file. To access them via IMs you need to provide IMS with information. I suggest you click the manuals link, select the IMS programming guide, search for GSAM and start reading.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: GSAM files in IMS

Postby Ed Goodman » Tue Jul 29, 2014 5:59 pm

To use with an IMS program, a GSAM needs to be in that program's PSB. That's the thing that tells a program which databases/segments it can use. A GSAM file needs to have DBD (database definition) so that it can be included in a PSB. The DBD will say something like "sequential file, lrecl=100, DDname for inut, DDname for output" The PSN definition will allow for read-only (Get Sequential) ((GS)) or for writing (Load Sequential)((LS)) by using the correct ProcOpt.

I've never used a GSAM file in the online region, I'm not even sure it's possible. I always use them in batch jobs. You SHOULD do an OPEN call and a CLOSE call when working with them. You use ISRT and GN to write/read them.

If you are doing a restart (XRST) call, make sure you DON'T do an OPEN call on the GSAM, because it will reset the pointer to the beginning of the file.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: GSAM files in IMS

Postby venubhat » Wed Jul 30, 2014 11:29 am

Hi Guys

Thanks for all info...I wanted another info. to browse the content of GSAM file.
In MF we access the normal flat/any other files with 3.4 opt and then browse(B) the file to see the content. like that, want to know how to browse a GSAM file and see the content in it.

thanks
venu
venubhat
 
Posts: 14
Joined: Mon Jul 14, 2014 4:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: GSAM files in IMS

Postby enrico-sorichetti » Wed Jul 30, 2014 11:43 am

the topic title reflects a misunderstanding ...

GSAM is NOT the dataset organization or a file type ( as seen from the zOS point of view ) ....
it is a DATABASE organization as seen by IMS to process it according to a subset of IMS DB rules
- mostly regarding data-integrity and checkpoint-restart

from the zOS point of view it is just a good old plain PS file and You can browse it using ISPF
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: GSAM files in IMS

Postby NicC » Wed Jul 30, 2014 11:10 pm

Why have you not tried browsing it either through 3.4 and browse option or via option1 - Browse?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to IMS DB/DC

 


  • Related topics
    Replies
    Views
    Last post