View previous topic :: View next topic
|
Author |
Message |
induajayrose Warnings : 2 New User
Joined: 25 Jul 2005 Posts: 28 Location: Thrissur
|
|
|
|
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 |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
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 |
|
|
induajayrose Warnings : 2 New User
Joined: 25 Jul 2005 Posts: 28 Location: Thrissur
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
Index is mandatory for search.
& we can use search all only when table is sorted. |
|
Back to top |
|
|
induajayrose Warnings : 2 New User
Joined: 25 Jul 2005 Posts: 28 Location: Thrissur
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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. 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 |
|
|
|