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

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


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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: 58
Location: home

PostPosted: Mon Apr 20, 2009 12:59 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top