MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Does a SQL statmement output a row in Multiple line ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
abc2000
Beginner


Joined: 22 Mar 2006
Posts: 18
Topics: 9

PostPosted: Tue Apr 11, 2006 10:24 pm    Post subject: Does a SQL statmement output a row in Multiple line ? Reply with quote

Using SPUFI or DSNTIAUL , Does a SQL statmement output a row in Multiple line ?

IN SYBASE, we can use char(13) produce newline, for example

select name ,char(13), dbid from sysdatabases

master
1
model
3
sybsystemdb
31513
sybsystemprocs
31514
tempdb
2


select name , dbid from sysdatabases
master 1
model 3
sybsystemdb 31513
sybsystemprocs 31514
tempdb 2
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Wed Apr 12, 2006 3:49 am    Post subject: Reply with quote

The "SPUFI Batch program" DSNTEP2 gives you a formatted report with a line width of 133; therefor you get multiple lines for one data row, if it's length exceeds the output area.

DSNTIAUL gives you one output line per data row.

regards
Christian
Back to top
View user's profile Send private message
abc2000
Beginner


Joined: 22 Mar 2006
Posts: 18
Topics: 9

PostPosted: Wed Apr 12, 2006 9:35 pm    Post subject: Reply with quote

I want a record ouput in contiguous lines, like my example above,
but DSNTEP2 does not


if a field length exceed 133 char, DSNTEP2 will truncate it to 133 chars

Can you tell me some about text format utility for os/390, Thake you!!
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Thu Apr 13, 2006 3:58 am    Post subject: Reply with quote

Well, don't use DSNTEP2, since this program is designed to write output to SYSOUT with all it's characteristics.

Instead of "SPUFI in batch", you can use the unload program DSNTIAUL or you try QMF in batch mode. QMF with it's many format options is quite complicate to use, but gives optimal designed results.

To keep the effort reasonable, I suggest to look at DSNTIAUL.

regards
Christian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group