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

INCLUDE/COPY in JCL ( Like COBOL COPY statement)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Wed Oct 12, 2005 7:04 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top