View previous topic :: View next topic
|
Author |
Message |
divya
New User
Joined: 10 Aug 2005 Posts: 8
|
|
|
|
I hve an interview in de week end .so can u help me to find answers for dis questions.
1 how many times we can use a instream procedure in a progrm?how many instream procedures can we use in a program ie different ones?
2. if we are not using cics den what is the use of copy book in a program? |
|
Back to top |
|
|
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
hai. you can use 15 instream procedures in a jcl job.
for your second question on copybook, it is not specific only to CICS alone. we can also use copybooks to include the working storage section variables. This helps in reducing the time of typing the identifiers.
corrections welcomed...........
gowtham |
|
Back to top |
|
|
divya
New User
Joined: 10 Aug 2005 Posts: 8
|
|
|
|
hai gowtham,
Can u giv me an example.Hw de woking storage section variables are included.Can u elaborate the procedure.
thanking u indu |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
For the first question I think that it depend on the amount of step that the procedure do.
The limit of exec in a jcl is 255...make your count. |
|
Back to top |
|
|
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
divya wrote: |
hai gowtham,
Can u giv me an example.Hw de woking storage section variables are included.Can u elaborate the procedure.
thanking u indu |
hai divya. hope that this example helps you. this is the copybook containing the following three variables A, B, C. i can save this in a PDS as a member in some name.
77 A PIC A(20).
77 B PIC X(20).
77 C PIC 9(5).
I've saved this in my PDS as a member say CC.
In all the programs which use this copybook, what i do is, simply i give the COPY statement in the WORKIGN-STORAGE SECTION as follows....
DATA DIVISION.
WORKING-STORAGE SECTION.
COPY CC.
Back ground of operation is the copybook gets expanded during the compilation time...........
corrections welcomed...........
gowtham |
|
Back to top |
|
|
|