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
 

 

why SYSIN data cannot be concatenated?

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

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Wed Oct 30, 2013 1:56 pm    Post subject: why SYSIN data cannot be concatenated?
Reply with quote

I have below step, wich is to issue DB2 REPAIR command to execute:
Code:
//STEP2 EXEC DSNUPROC,SYSTEM=DB21,UID='REPAIR',UTPROC=''
//DSNUPROC.SYSREC DD DUMMY                             
//DSNUPROC.SYSIN    DD  *                               
  REPAIR SET TABLESPACE                                 
//         DD  DSN=QUA.DS.PARM(QUA),DISP=SHR           
//         DD  DSN=&&TS,DISP=(OLD,PASS)                 
NOCOPYPEND                                             


but from log, I can see the command was not successfully constructed.
this is the log:
Code:
********************************* TOP OF DATA ******************
 DSNUGUTC - OUTPUT START FOR UTILITY, UTILID = CMD0200J         
 DSNUGTIS - PROCESSING SYSIN AS EBCDIC                         
 DSNUGUTC -  REPAIR                                             
2.14 DSNUCBRS -   SET TABLESPACE QUALIFIER. TESTTABLE             
 DSNUGBAC - UTILITY EXECUTION COMPLETE, HIGHEST RETURN CODE=0   
******************************** BOTTOM OF DATA ****************


that is , parameter NOCOPYPEND was not appended to the command.

I don't understand why this happened.

but from the log, I also found

Code:
NP   DDNAME   StepName ProcStep
     SYSIN    STEP2    DSNUPROC
     SYSIN                     


the second SYSIN contains 'NOCOPYPEND ' but not belongs to any step.
how can I resolve this?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Wed Oct 30, 2013 2:08 pm    Post subject: Reply to: why SYSIN data cannot be concatenated?
Reply with quote

It can be concatenated. You forgot to do so.

You needed // DD * before your last card. If you look at the processed JCL you'll see that the system generated a separate //SYSIN DD * for it, so that is where your card went.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Wed Oct 30, 2013 3:10 pm    Post subject:
Reply with quote

Thanks, Bill,
my bad...
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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


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