View previous topic :: View next topic
|
Author |
Message |
vickey_dw
New User
Joined: 10 Jun 2015 Posts: 51 Location: India
|
|
|
|
Hi All,
i am using below kind of job to run SQL query (Cannot post original job as i dont have google access inside ODC)
Code: |
//STEP001 EXEC PGM=IKJEFT01,DYNAMNBR=20,
// REGION=4M
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DB2D)
RUN PROGRAM(DSNTEP2) PLAN(DSNTEP2) -
LIB('db2.load.library')
/*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SQL QUERY
/* |
This job is working fine and i am getting results of query in SYSPRINT statement.
But i want result of SQL in my PS so i am trying below
Code: |
//SYSPRINT DD DSN=MYPS,DISP=SHR |
But i am getting some printing error.Please share your thoughts on this. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Saying that you are getting "some printing error" is completely useless; you should know that by now. Give us, at minimum, the message number and text. |
|
Back to top |
|
|
RahulG31
Active User
Joined: 20 Dec 2014 Posts: 446 Location: USA
|
|
|
|
vickey_dw wrote: |
Code: |
//SYSPRINT DD DSN=MYPS,DISP=SHR |
|
Do you really want to use DISP=SHR ?
. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Your LRECL will be max up to 133 because of DSNTEP2 so why dn't you use DSNTIAUL and if you don't know then search on internet.
This link will help you; but make sure next time you do proper research and give us proper information about the error message.
ibmmainframes.com/about34492.html |
|
Back to top |
|
|
|