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

instream procedure


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

New User


Joined: 10 Aug 2005
Posts: 8

PostPosted: Fri Aug 12, 2005 7:34 am
Reply with quote

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
View user's profile Send private message
gowtham_srgp

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Fri Aug 12, 2005 11:27 am
Reply with quote

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
View user's profile Send private message
divya

New User


Joined: 10 Aug 2005
Posts: 8

PostPosted: Fri Aug 12, 2005 6:44 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Sat Aug 13, 2005 12:01 am
Reply with quote

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
View user's profile Send private message
gowtham_srgp

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Tue Aug 16, 2005 9:51 am
Reply with quote

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
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 Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
No new posts Stored procedure cpu utilization DB2 1
Search our Forums:

Back to Top