Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
no need of ssa while isrt ,dlet or repl why?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: no need of ssa while isrt ,dlet or repl why?
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    Post subject: Re: no need of ssa while isrt ,dlet or repl why?
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    Post subject: Re:
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    Post subject: Re: no need of ssa while isrt ,dlet or repl why?
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REPL link edit Linda C JCL & VSAM 2 Wed Feb 08, 2012 8:54 pm
No new posts ISRT fails kishore balya IMS DB/DC 3 Thu Oct 14, 2010 12:02 pm
No new posts Automating element generate on DLET f... Tebogo23 CA Products 1 Wed Sep 29, 2010 1:40 pm
No new posts DC: ISRT CALL raghav08 IMS DB/DC 1 Tue Aug 31, 2010 6:53 pm
No new posts IMS DB - Is GHU call needed for ISRT ... Sandy Zimmer IMS DB/DC 27 Tue Aug 17, 2010 6:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us