|
View previous topic :: View next topic
|
| Author |
Message |
Baskaran Warnings : 1 New User
Joined: 24 Oct 2006 Posts: 32 Location: India
|
|
|
|
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 |
|
 |
murmohk1
Senior Member
.jpg)
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
 |
amitava Warnings : 1 Active User

Joined: 30 Oct 2005 Posts: 186 Location: India
|
|
|
|
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 |
|
 |
Baskaran Warnings : 1 New User
Joined: 24 Oct 2006 Posts: 32 Location: India
|
|
|
|
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 |
|
 |
murmohk1
Senior Member
.jpg)
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
| Quote: |
| Can this JCL statment be used in a JOB with INCLUDE statment |
In one word. NO. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|