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
 

 

Difference between Inrec and Outrec

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Premdev

New User


Joined: 05 Feb 2008
Posts: 24
Location: Coimbatore

PostPosted: Tue Apr 15, 2008 12:23 pm    Post subject: Difference between Inrec and Outrec
Reply with quote

Hi,

Please explain me the difference between Inrec and Outrec with examples.

Thanks in advance.

R's
Prema.
Back to top
View user's profile Send private message

bharath18

New User


Joined: 12 Sep 2006
Posts: 15
Location: Chennai, Tamilnadu, India

PostPosted: Tue Apr 15, 2008 12:40 pm    Post subject: Reply to: Difference between Inrec and Outrec
Reply with quote

INREC
Specifies how records are reformatted before they are sorted, copied, or merged.

OUTREC
Specifies how records are reformatted after they are sorted, copied, or
merged.
Back to top
View user's profile Send private message
Premdev

New User


Joined: 05 Feb 2008
Posts: 24
Location: Coimbatore

PostPosted: Tue Apr 15, 2008 12:43 pm    Post subject:
Reply with quote

Thanks Bharath.

It will be grateful if you explain me with an example.

R's
Prema.
Back to top
View user's profile Send private message
bharath18

New User


Joined: 12 Sep 2006
Posts: 15
Location: Chennai, Tamilnadu, India

PostPosted: Tue Apr 15, 2008 1:01 pm    Post subject: Reply to: Difference between Inrec and Outrec
Reply with quote

Example :

You could use the following statements to show all of the authors for the books used in computer science.

Code:

   INCLUDE COND=(110,5,CH,EQ,C’COMP’)
   SORT FIELDS=(76,15,CH,A,91,15,CH,A)
   OUTREC BUILD=(91,15,X,76,15)


The authors first name and last name will be displayed in the Upper Case. If you wanted to display these names with an initial uppercase letter and the subsequent in lower case letters, you could use the following OUTREC statement.

Code:

  OUTREC BUILD=(91,1,92,14,TRAN=UTOL,X,
     76,1,76,14,TRAN=UTOL)
Back to top
View user's profile Send private message
bharath18

New User


Joined: 12 Sep 2006
Posts: 15
Location: Chennai, Tamilnadu, India

PostPosted: Tue Apr 15, 2008 1:05 pm    Post subject: Re: Reply to: Difference between Inrec and Outrec
Reply with quote

You can also change the format as First Name & Last Name

Like,

Code:

  OUTREC BUILD=(76,1,77,14,TRAN=UTOL,X,
     91,1,92,14,TRAN=UTOL)
Back to top
View user's profile Send private message
Premdev

New User


Joined: 05 Feb 2008
Posts: 24
Location: Coimbatore

PostPosted: Tue Apr 15, 2008 1:37 pm    Post subject:
Reply with quote

Thank you Bharath icon_smile.gif
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Apr 15, 2008 4:55 pm    Post subject: Reply to: Difference between Inrec and Outrec
Reply with quote

This same topic was already answered here.
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: Tue Apr 15, 2008 9:13 pm    Post subject:
Reply with quote

Prema,

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html

Here's a link to the Chapter on reformatting records:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.4?DT=20060615173822
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 outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am


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