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

USING JCL SORT include only particular positions of data


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

New User


Joined: 07 Dec 2007
Posts: 8
Location: Pune

PostPosted: Mon Jan 21, 2008 1:08 pm
Reply with quote

Hi,

Please help me ...

From the input dataset using JCL SORT I want to include only 1-10 and 20-40 positions of data to the output dataset, how to code using sort
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Jan 21, 2008 1:22 pm
Reply with quote

Soma,

Use DFSORT's INREC statement for your requirement.

Code:
//SYSIN      DD *
  OPTION COPY
  INREC BUILD=(1,10,20,21)
/*
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Mon Jan 21, 2008 1:41 pm
Reply with quote

See 2.4 Reformatting Records with Fixed Fields in DFSORT: Getting Started
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: Mon Jan 21, 2008 9:21 pm
Reply with quote

Soma,

Aaru showed you the DFSORT statements you need.

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:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
puppalso

New User


Joined: 07 Dec 2007
Posts: 8
Location: Pune

PostPosted: Tue Jan 22, 2008 12:46 pm
Reply with quote

Hi Aaru,

Thank U very much...it worked...

Hi Frank,

Thank U very much for providing Manuals...
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 How to split large record length file... DFSORT/ICETOOL 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top