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

SPUFI => CSV


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mike 1304

New User


Joined: 15 Oct 2011
Posts: 46
Location: Germany

PostPosted: Fri Jan 24, 2014 11:51 pm
Reply with quote

SYSPRINT:
Code:

********************************* TOP OF DATA *****
 DSNT490I SAMPLE DATA UNLOAD PROGRAM               
                                                   
******************************** BOTTOM OF DATA ***

I think you are talking about this output.
It ends after the first record!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jan 25, 2014 12:25 am
Reply with quote

Hello,

Suggest you look in all of the sysout datasets created by the run - including these:
JES2.JESMSGLG
JES2.JESJCL
JES2.JESYSMSG

Also if any sysout data was written to dasd, look at those files as well.

There should be diagnostic info generated icon_confused.gif
Back to top
View user's profile Send private message
vinaysetlur

New User


Joined: 04 Jan 2008
Posts: 13
Location: United States

PostPosted: Sat Jan 25, 2014 11:42 am
Reply with quote

Do you also have a //SYSREC DD for capturing your output data ?
I see you actually invoke DSNTIAUL.
Please refer publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2z9.doc.ugref%2Fsrc%2Ftpc%2Fdb2z_dsntiaul.htm
if that helps.
Back to top
View user's profile Send private message
Mike 1304

New User


Joined: 15 Oct 2011
Posts: 46
Location: Germany

PostPosted: Sat Jan 25, 2014 1:05 pm
Reply with quote

can we try the another way:

Can somebody run a DSNTIAUL with a invalid select statement like SELECT ABC FORM X.Y.Z
and tell me, where he can find a detailed error message?

I think I have a error in the SELECT, but just RC=12 doesn't help me to find it.
Back to top
View user's profile Send private message
vinaysetlur

New User


Joined: 04 Jan 2008
Posts: 13
Location: United States

PostPosted: Tue Jan 28, 2014 2:48 am
Reply with quote

Hope this reference helps. Look in the SYSPRINT/ SYSTSPRT for the error
Detailed discussion on DSNTIAUL
ibmmainframes.com/about9681-0.html
Back to top
View user's profile Send private message
Mike 1304

New User


Joined: 15 Oct 2011
Posts: 46
Location: Germany

PostPosted: Tue Jan 28, 2014 7:23 pm
Reply with quote

My fault was to copy an example from IBM manual.
It was not the right one to use with SELECT.

Code:
//UNLOAD  EXEC PGM=IKJEFT01,DYNAMNBR=20
//SYSTSPRT DD  SYSOUT=*
//SYSTSIN  DD  *
 DSN SYSTEM(DSN)
 RUN  PROGRAM(DSNTIAUL) PLAN(DSNTIB91) -
       LIB('DSN910.RUNLIB.LOAD')
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSREC00 DD DSN=DSN8UNLD.SYSREC00,
//            UNIT=SYSDA,SPACE=(32760,(1000,500)),DISP=(,CATLG),
//            VOL=SER=SCR03
//SYSPUNCH DD DSN=DSN8UNLD.SYSPUNCH,
//            UNIT=SYSDA,SPACE=(800,(15,15)),DISP=(,CATLG),
//            VOL=SER=SCR03,RECFM=FB,LRECL=120,BLKSIZE=1200
//SYSIN    DD *DSN8910
.PROJ WHERE DEPTNO='D01'



Now I changed to
RUN PROGRAM(DSNTIAUL) PARM('SQL')
and get no error any more (and if an error occurs it is described in SYSPRINT as expected).


Summary:
SPUFI has no feature to produce a CSV file.
But with DSNTIAUL I can produce a file without headings and with delimiters, inserting the delimiters in the SELECT.

So my Question is answered now,
thread could be closed,
many thanks!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jan 28, 2014 7:46 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jan 28, 2014 11:24 pm
Reply with quote

enrico-sorichetti wrote:
IMNSHO icon_wink.gif
I know you had not been honest! icon_biggrin.gif
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Beautifying the SPUFI output DB2 5
No new posts Using SPUFI with DISTINCT and MAX is ... DB2 8
No new posts SPUFI -- Joining 3 tables – data in... DB2 2
Search our Forums:

Back to Top