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
 
Delete a subprogram which is statically link edited to main

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Delete a subprogram which is statically link edited to main
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: Chennai

PostPosted: Mon Nov 20, 2006 3:33 pm    Post subject: Re: Interview questions
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    Post subject: Re: Delete a subprogram which is statically link edited to m
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: 1187
Location: Bangalore,India

PostPosted: Mon Nov 20, 2006 4:08 pm    Post subject:
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    Post subject: Re: Delete a subprogram which is statically link edited to m
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts DIrect link of dynam/nodynam nkjain87 COBOL Programming 2 Mon Apr 24, 2017 6:23 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm

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