Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

instream procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: instream procedure
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    Post subject: Re: instream procedure
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    Post subject: instream procedure
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    Post subject:
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    Post subject: Re: instream procedure
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    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 Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
This topic is locked: you cannot edit posts or make replies. Stored procedure on Federated thru DB2 arif677 DB2 6 Tue May 31, 2016 11:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us