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

Delete a subprogram which is statically link edited to main


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
induajayrose
Warnings : 2

New User


Joined: 25 Jul 2005
Posts: 28
Location: Thrissur

PostPosted: Mon Nov 20, 2006 2:57 pm
Reply with quote

Hi,

Can anyone give the answers for these questions.

1.Suppose we redefine A with B.Is it possible to redefine B with C. And C with D.
2.Suppose I have declared like this

01 A pic X(2) value 'AB'
02 B redefines A Pic 9(2) .
If we displays B what wil be shown.
3.What is the selection criteria between Search and search all.Is index mandatory for search all?
4.Can we delete a subprogram which is statically link edited to a mainpgm.Is it possible with dynamic linking?
5.I am generating a new generation for a GDG in first step .Is it possible to use the same current generation in the second step even if the first step abends.
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Mon Nov 20, 2006 3:33 pm
Reply with quote

Quote:
1.Suppose we redefine A with B.Is it possible to redefine B with C. And C with D.

Yes,you can redefine.

Quote:
2.Suppose I have declared like this

01 A pic X(2) value 'AB'
02 B redefines A Pic 9(2) .
If we displays B what wil be shown.


when I executed both A and B displays AB

Quote:
3.What is the selection criteria between Search and search all.Is index mandatory for search all?

Search is used for normal search,Search All is for binary search.In case of Search All the table has to be previously sorted.



Regards,
Muthuvel.
Back to top
View user's profile Send private message
induajayrose
Warnings : 2

New User


Joined: 25 Jul 2005
Posts: 28
Location: Thrissur

PostPosted: Mon Nov 20, 2006 3:48 pm
Reply with quote

Thanks yaar...

I wanted to know depending on what criteria we will select between a search and search all.ie in which conditions we will use search and in which conditions we will use search all.And also is index is mandatory in search.


regards,
indu
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Nov 20, 2006 4:08 pm
Reply with quote

Hi there,

Index is mandatory for search.

& we can use search all only when table is sorted.
Back to top
View user's profile Send private message
induajayrose
Warnings : 2

New User


Joined: 25 Jul 2005
Posts: 28
Location: Thrissur

PostPosted: Tue Nov 21, 2006 11:42 am
Reply with quote

Any one know the answers for following questions .

4.Can we delete a subprogram which is statically link edited to a mainpgm.Is it possible with dynamic linking?
5.I am generating a new generation for a GDG in first step .Is it possible to use the same current generation in the second step even if the first step abends.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Nov 29, 2006 11:01 pm
Reply with quote

4. I don't think the ques is precise enough, so I'll go thru how each is created and used. Then maybe you can ans the ques.

A staticly linked pgm is coimpiled and linked as a separate module then the calling pgm links it as part of its load module. So now, if the sub pgm's LM is deleted it still exists as part of the calling pgm. So any pgm that linked it defore it was deleted will not abend because it was deleted.

A dynamically linked sub solely exists as a "stand alone" module - it isn't part of the other LM. If it is deleted after the link edit, the pgm calling it will abend - w/a S806 or maybe an 0C4. If it is deleted before the link edit the link listing will indicate "an unresolved external reference" and a non-zero RC is passed to the next compile/link step, if any.


5. Again not precise. icon_smile.gif If you mean that you want to create a different generation in the 2nd step, you would use +1 in step1 and +2 in step2. The system will keep track of everything, even if step1 abends and you have cond=even coded in step2. What gets kept and what doesn't depends on the DISP 2s you use for the GDGs in each step

If you mean that in step2, you want to read the gen created in step1, the ans is you can if your JCL doesn't tell the system to delete the gen created in step1 on a step1 abend.
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts How can i link the RHDCSNON programa ... IDMS/ADSO 2
Search our Forums:

Back to Top