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

no need of ssa while isrt ,dlet or repl why?


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dbamain

New User


Joined: 28 Jun 2005
Posts: 12

PostPosted: Tue Jun 28, 2005 2:53 pm
Reply with quote

hai friends,
I have read in the book that without using the ssa we can insert, delete replace the segment?how and why?help me
Back to top
View user's profile Send private message
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

PostPosted: Wed Jun 29, 2005 11:43 am
Reply with quote

Hi,

With out using SSAs you can do anything. But it will take a long process.

SSAs is ment for simplify the calls you issued in your application program. Suppose if you wanna DLET, first you need to get a position at that point.If it is in root lelel or lower one level its fine not to use SSAs. But if it is at 5th level, better you issue with SSAs

any corrections, WELCOME
Back to top
View user's profile Send private message
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

PostPosted: Fri Jul 08, 2005 12:08 pm
Reply with quote

Hi,

Sorry for misguiding you.

For REPL, DELT call we are not using Qualified calls. Its a programming error.

Why no need of Qualified SSA means, for REPL or DLET calls first we issuing GHU call, then only we replace or delete.
If you havent issued GHU call before issuing REPL or DLET, agian its programming error.

Please correct me if anything is wrong.

Regards,
Sudhaaa.
Back to top
View user's profile Send private message
pianoman1948

New User


Joined: 13 Jul 2005
Posts: 3

PostPosted: Tue Jul 19, 2005 7:38 pm
Reply with quote

dbamain wrote:
hai friends,
I have read in the book that without using the ssa we can insert, delete replace the segment?how and why?help me

Hi -

Sorry if this is more than you wanted to know, but I just happened to have notes about this exact topic:

USING SSAs WITH DATABASE UPDATES (ISRT, REPL OR DLET)

1. You normally DO NOT use ANY SSAs on a DLET call. A DLET always deletes the segment you just retrieved with a GET HOLD call.

The only time there is any question what segment you want to delete is if you have just retrieved more than one segment; that is, a path call. On a DLET after a path call, one unqualified SSA is REQUIRED to tell IMS which one of the segments just retrieved is to be deleted.

Only one SSA is allowed on a DLET. That's the ONLY time an SSA is required on a DLET. The SSA on a DLET MUST be UNQUALIFIED.

An I/O area is required. You will get an AB statcode if an I/O area is not present.

2. An ISRT MUST have at least one unqualified SSA, naming the segment you are inserting. If there are no other SSAs, which parent(s) the new segment gets hung under depends on database position before the ISRT call. So you can implicitly establish where a new segment goes by previous calls.

But the IMS manual recommends explicitly telling IMS exactly where the new segments should go by including qualififed SSAs for all the higher level segments when you do an ISRT. The makes IMS check the hierarchical path to the new segment. If any parents are missing, the ISRT call won't work.

It is possible to do a "path ISRT". But in any case where there is more than one SSA on an ISRT, the lowest-level SSA MUST be UNQUALIFIED. When there is only one SSA, it MUST be UNQUALIFIED.


3. Normally, you do not use SSAs on a REPL call. When the preceding GET HOLD only got one segment, there is no doubt what segment is to be replaced, so no SSA is needed.

The only time SSAs may be necessary on a REPL is if the preceding GET HOLD was a path call, retrieving more than one segment. If you then do a REPL they will all be replaced. If you want some of them to NOT be replaced, code an unqualified SSA for those segments with the *N command code.

A qualified SSA on a REPL will give you an AJ statcode.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts REPL link edit JCL & VSAM 2
No new posts ISRT fails IMS DB/DC 3
No new posts Automating element generate on DLET f... CA Products 1
No new posts DC: ISRT CALL IMS DB/DC 1
No new posts IMS DB - Is GHU call needed for ISRT ... IMS DB/DC 27
Search our Forums:

Back to Top