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

copying member to a JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1436
Location: Bangalore,India

PostPosted: Tue Jun 26, 2007 1:56 pm
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
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
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: 1436
Location: Bangalore,India

PostPosted: Tue Jun 26, 2007 3:07 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Library member auto insert option TSO/ISPF 3
Search our Forums:

Back to Top