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: 19244
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top