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: 7306

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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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