IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Explain SORT Fields=COPY


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
viji_rags

New User


Joined: 04 Jun 2010
Posts: 24
Location: chennai

PostPosted: Thu Mar 31, 2011 4:27 pm
Reply with quote

Please explain the below code
========================
SORT FIELDS=COPY
OUTREC FIELDS=(1:1,0400,C'00270')
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Mar 31, 2011 4:36 pm
Reply with quote

To get you started: This
Code:
SORT FIELDS=COPY
tells to copy the input records to output. The input data set is copied to the output data set without
sorting or merging.

Code:
OUTREC FIELDS=(1:1,0400,C'00270')
This says, when you copy from input to OUTput RECord - in output first 400-bytes must be copied from input as it is, starting from position 1 in o/p and... okay, rest I leave for you to investigate in.
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: Thu Mar 31, 2011 11:15 pm
Reply with quote

viji_rags,

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/support/docview.wss?rs=114&uid=isg3T7000080

C'00270' inserts a character constant of 00270 after the 400 bytes.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Apr 01, 2011 2:57 pm
Reply with quote

Quote:
C'00270' inserts a character constant of 00270 after the 400 bytes.
Thanks for kind gesture, Frank...icon_smile.gif
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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top