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 find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm
No new posts how to extract the member name ? jackzhang75 CLIST & REXX 1 Wed Feb 17, 2016 9:21 pm


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