Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 252
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 More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us