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
 

 

copying member to a JCL

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

New User


Joined: 24 Oct 2006
Posts: 32
Location: India

PostPosted: Tue Jun 26, 2007 11:33 am    Post subject: copying member to a JCL
Reply with quote

Hi,

I have an senario in which i generate a JCL statment from my cobol program,This JCL statment will have starting from STEP and DD's and SYSIN DD * startements,

I will then convert this sequential to a PDS member using rexx.

Now my problem is i need to include this member to JCL having JOBCARD.Since my member is having instream data i am not able to use it.

Is there any way i can do it.

My member looks like this.I need to paste it in a Job having JOB card,How to do this So i can run this job having my statments
Code:

//UTIL01 EXEC DSNUPROC,SYSTEM=DB2,UID='WKREOR01',UTPROC=''   
//SYSPRINT DD  SYSOUT=*                                     
//UTPRINT  DD  SYSOUT=*                                     
//SYSDUMP  DD  SYSOUT=*                                     
//SYSREC   DD DSN=TLP.DLPSYN.SLP1118.P0000.SYSREC,           
//     DISP=(NEW,DELETE,CATLG),                             
//     SPACE=(CYL,(1,1),,,ROUND),                           
//     UNIT=PROD                                             
//SYSCOPY  DD DSN=TLP.DLPSYN.SLP1118.P0000.ONSITE.DFCALL,   
//     DISP=(NEW,CATLG,DELETE),                             
//     SPACE=(CYL,(1,1),,,ROUND),                           
//     UNIT=PROD                                             
//SYSIN    DD  *                                       
REORG  TABLESPACE DLPSYN.SLP1118                       
SHRLEVEL     CHANGE                                     
MAPPINGTABLE DLPSYN.REOR01_MAPPING_TBL                 
SORTDEVT     SYSDA                                     
SORTNUM      0001                                       
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Tue Jun 26, 2007 1:56 pm    Post subject:
Reply with quote

Baskaran,

Quote:
I have an senario in which i generate a JCL statment from my cobol program,This JCL statment will have starting from STEP and DD's and SYSIN DD * startements,


Quote:
Since my member is having instream data i am not able to use it.


Why dont you put instream data (sysin data) into another member and use it as sysin card. Like -

Code:
//SYSIN DD DSN=SOME.PDS(MEMBER),DISP=SHR
Back to top
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Tue Jun 26, 2007 2:53 pm    Post subject:
Reply with quote

Hey Baskaran,
While coping the PS to a member of a PDS thru REXX, u can add the logic to include the jobcard in the JCL member man! It will be very simple to do that!
Back to top
View user's profile Send private message
Baskaran
Warnings : 1

New User


Joined: 24 Oct 2006
Posts: 32
Location: India

PostPosted: Tue Jun 26, 2007 2:56 pm    Post subject: Re: copying member to a JCL
Reply with quote

Hi All,

Since my cobol program might generate REORG JCL for more 100 tablespace ,we opted for this SYSIN DD *.

Creating SYSIN card as PDS member will created lot of confusion.

Can this JCL statment be used in a JOB with INCLUDE statment
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Tue Jun 26, 2007 3:07 pm    Post subject:
Reply with quote

Quote:
Can this JCL statment be used in a JOB with INCLUDE statment


In one word. NO.
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am


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