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
 

 

redirecting the o/p of query to a dataset in batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
shchan

New User


Joined: 06 Jun 2007
Posts: 58
Location: Hyderabad

PostPosted: Mon Apr 20, 2009 12:18 pm    Post subject: redirecting the o/p of query to a dataset in batch
Reply with quote

Hi,
I have used teh following jcl to run my query in batch.But when iam trying to redirect it to another dataset iam getting a MAXCC=12.Can anybody help me in this regard.
Code:
//BATCHSQL EXEC PGM=IKJEFT01,DYNAMNBR=20             
//SYSTSPRT DD SYSOUT=*                               
//SYSPRINT DD DSN=userid.dataset,       
//            DISP=(NEW,CATLG,DELETE),               
//            DCB=(RECFM=FB,LRECL=420,BLKSIZE=0)     
//SYSUDUMP DD SYSOUT=*                               
//SYSTSIN DD *                                       
DSN SYSTEM(DB01)                                     
RUN PROGRAM(DSNTEP2) PLAN(DSNTEP81) -               
LIB('SYS3.DAJ.CSF.DB2LOAD')                         
END     
//SYSIN DD * 
  my query
         
Back to top
View user's profile Send private message

ruodeer

New User


Joined: 06 Jul 2007
Posts: 59
Location: home

PostPosted: Mon Apr 20, 2009 12:59 pm    Post subject:
Reply with quote

You should put the output of job here.
Back to top
View user's profile Send private message
Lijo

New User


Joined: 24 Aug 2008
Posts: 41
Location: Cochin

PostPosted: Tue Apr 21, 2009 12:40 pm    Post subject:
Reply with quote

Please try allocating dataset to SYSTSPRT DD. Usually SYSTSPRT is the standard ouput DD for TSO program (IKJEFT**)...
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Batch job tunning sgandhla Testing & Performance analysis 0 Fri Mar 24, 2017 9:41 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 5 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm


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