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
 

 

INCLUDE/COPY in JCL ( Like COBOL COPY statement)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Oct 11, 2005 11:38 am    Post subject: INCLUDE/COPY in JCL ( Like COBOL COPY statement)
Reply with quote

Hi,

A bit silly question.

Do we have anything like INCLUDE/COPY in JCL?

For example, in COBOL we can use COPY statement to include any text into the source program. For example, we can have procedure division or data division entries kept in other source datasets and we can issue

COPY XYZ command to copy it into our program.


My question is, do we have anything like that in JCL?

I know that we can use proc. but the proc must have a least one EXEC statement (correct me if I am wrong).

One of my jobstep contains a lot of DD statements and I want to keep all those statements in a seperate dataset but without EXEC statement.

Can I do this?
Back to top
View user's profile Send private message

MGIndaco

Active User


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

PostPosted: Tue Oct 11, 2005 12:47 pm    Post subject:
Reply with quote

In a PROC you can have more than one EXEC statement.
This is the link for the PROC:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IEA2B650/24.0?DT=20040712170508
And this is for the INCLUDE statement:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IEA2B650/18.0?DT=20040712170508

Try to search in JCL manual and you will find all you need.
Back to top
View user's profile Send private message
solid_18

New User


Joined: 11 Oct 2005
Posts: 2
Location: Manila, Philippines

PostPosted: Tue Oct 11, 2005 10:51 pm    Post subject:
Reply with quote

Yes! its possible to INCLUDE in JCL
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 241
Location: Cincinnati OH USA

PostPosted: Wed Oct 12, 2005 7:04 am    Post subject:
Reply with quote

simple seach of JCL manual would provide the answer



Dave
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Mon Oct 17, 2005 3:44 pm    Post subject:
Reply with quote

Hi,

Thanks all.

dnefarth, you are right, a simple search in JCL manual would have given me the answer.

But I didn't know that "INCLUDE" is there in JCL.

I was searching for "COPY".

Anyway, thanks
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm


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