View previous topic :: View next topic |
Author |
Message |
abc2000 Beginner
Joined: 22 Mar 2006 Posts: 18 Topics: 9
|
Posted: Tue Apr 11, 2006 10:24 pm Post subject: Does a SQL statmement output a row in Multiple line ? |
|
|
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 |
|
|
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Wed Apr 12, 2006 3:49 am Post subject: |
|
|
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 |
|
|
abc2000 Beginner
Joined: 22 Mar 2006 Posts: 18 Topics: 9
|
Posted: Wed Apr 12, 2006 9:35 pm Post subject: |
|
|
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 |
|
|
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Thu Apr 13, 2006 3:58 am Post subject: |
|
|
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 |
|
|
|
|