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 OUTREC, BUILD and OVERLAY

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

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Fri Dec 15, 2006 11:19 am    Post subject: Difference between OUTREC, BUILD and OVERLAY
Reply with quote

Hi,

Whats the main difference between OUTREC, BUILD and OVERLAY?

Thanks in advance,
Chinni
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Fri Dec 15, 2006 11:27 am    Post subject:
Reply with quote

Hi Chinni,

OUTREC Describes how records are to be reformatted after they are sorted, copied or merged.

BUILD: Reformat each record by specifying all of its items one by one. Build gives you complete control over the items you want in your reformatted records and the order in which they appear. You can delete, rearrange and insert fields and constants.

OVERLAY
: Reformat each record by specifying just the items that overlay specific columns. Overlay lets you change specific existing columns without affecting the entire record.

For more information please refer Manual
Back to top
View user's profile Send private message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Fri Dec 15, 2006 11:35 am    Post subject: Re: Difference between OUTREC, BUILD and OVERLAY
Reply with quote

Hi Ekta,

Thanks for your prompt reply.

I would like to know whatever BUILD does can be done using OUTREC right? Are there any specific things alone can be done using these three features? I mean unique facility of these three.

Lets say if we want to reform an output record this can be done using OUTREC, BUILD and OVERLAY?? Hope you understood what I ask for.

Could be please be more descriptive on this?

Thanks in advance,
Chinni.
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: Fri Dec 15, 2006 8:41 pm    Post subject:
Reply with quote

INREC, OUTREC and OUTFIL are DFSORT control statements that you can use to reformat records.

BUILD and OVERLAY are parameters of the INREC, OUTREC and OUTFIL statements. The INREC statement can be used to reformat records before sorting, merging or copying. The OUTREC statement can be used to reformat records after sorting, merging or copying. OUTFIL statements can be used to reformat records for different output files and a lot more.

For the INREC and OUTREC statements, the BUILD parameter is an alias of the FIELDS parameter. For the OUTFIL statement, the BUILD parameter is an alias of the OUTREC parameter.

BUILD reformats a record item by item - you must specify each item to be included in the output record. OVERLAY overlays specific positions - you only need to specify the items to be overlaid.

So the BUILD and OVERLAY parameters can be used consistently with INREC, OUTREC or OUTFIL (as well as with IFTHEN clauses), whereas the FIELDS parameter can only be used with INREC/OUTREC, and the OUTREC parameter can only be used with OUTFIL.

Quote:
I would like to know whatever BUILD does can be done using OUTREC right? Are there any specific things alone can be done using these three features? I mean unique facility of these three.

Lets say if we want to reform an output record this can be done using OUTREC, BUILD and OVERLAY?? Hope you understood what I ask for.


It depends on whether you mean the OUTREC statement or the OUTREC parameter. The BUILD parameter is equivalent to the OUTREC parameter for OUTFIL. But the BUILD parameter can also be used on the INREC and OUTREC statements whereas the OUTREC parameter can't be used on those statements.

If you're asking if you can reformat records using BUILD or OVERLAY, the answer is yes, but BUILD requires you to specify every item whereas OVERLAY only requires you to specify the items to be overlaid.

For an overview of DFSORT's reformatting functions including BUILD, OVERLAY and IFTHEN, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.4?DT=20060615173822

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
Back to top
View user's profile Send private message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Mon Dec 18, 2006 10:54 am    Post subject: Re: Difference between OUTREC, BUILD and OVERLAY
Reply with quote

Hi Frank,

Thanks for your valuable information.

Thanks,
Chinni
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 Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 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


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