Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to add a new line in sort while doing outrec

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to add a new line in sort while doing outrec
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Jun 08, 2011 2:10 am    Post subject:
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: 578
Location: USA

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

Read here New line --> /

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

DFSORT Moderator


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

PostPosted: Wed Jun 08, 2011 2:50 am    Post subject:
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    Post subject: Reply to: How to add a new line in sort while doing outrec
Reply with quote

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

Site Director


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

PostPosted: Wed Jun 08, 2011 3:23 am    Post subject:
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    Post subject:
Reply with quote

hac,

Did you even try to read the error message ICE215A which clearly tells you what the problem is

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us