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 Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm


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