View previous topic :: View next topic
|
Author |
Message |
hac
New User
Joined: 18 Jan 2008 Posts: 30 Location: mumbai
|
|
|
|
How to add a new line in sort while doing outrec |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Just a little more details required... like, anything. |
|
Back to top |
|
|
sqlcode1
Active Member
Joined: 08 Apr 2010 Posts: 577 Location: USA
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
hac,
You cannot add a new line with the OUTREC statement. You can add a new line with the OUTFIL statement. For example:
Code: |
OUTFIL BUILD=(1,80,/,'New line')
|
If you want more specific help, you need to give more specific details of what you want to do. |
|
Back to top |
|
|
hac
New User
Joined: 18 Jan 2008 Posts: 30 Location: mumbai
|
|
|
|
attached is the sort card and the error desc. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please do not attach - many of our contributors are not permitted to download attachments.
To post data from a screen, simply use copy/paste and the "Code" tag. |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
hac,
Did you even try to read the error message ICE215A which clearly tells you what the problem is
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ice1cm50/2.2.205?
You need to use OUTFIL instead of OUTREC.
Use the following control cards
Code: |
//SYSIN DD *
INCLUDE COND=(10,8,CH,EQ,C'>>> RETP')
SORT FIELDS=COPY
OUTFIL BUILD=(C' REPRO INDATASET(',20,39,C') -',/,
C' OUTFILE(OUTFILE) RESUSE',80:X)
//* |
|
|
Back to top |
|
|
|