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

How to add a new line in sort while doing outrec


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hac

New User


Joined: 18 Jan 2008
Posts: 30
Location: mumbai

PostPosted: Wed Jun 08, 2011 1:59 am
Reply with quote

How to add a new line in sort while doing outrec
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jun 08, 2011 2:10 am
Reply with quote

Just a little more details required... like, anything.
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Wed Jun 08, 2011 2:19 am
Reply with quote

Read here New line --> /

Thanks.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Jun 08, 2011 2:50 am
Reply with quote

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
View user's profile Send private message
hac

New User


Joined: 18 Jan 2008
Posts: 30
Location: mumbai

PostPosted: Wed Jun 08, 2011 3:17 am
Reply with quote

attached is the sort card and the error desc.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Jun 08, 2011 3:23 am
Reply with quote

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
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Jun 08, 2011 3:30 am
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Alternative of JoinKeys in SORT DFSORT/ICETOOL 2
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
Search our Forums:


Back to Top