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

sort using icetool


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

New User


Joined: 22 Apr 2005
Posts: 1

PostPosted: Thu Sep 22, 2005 6:05 pm
Reply with quote

hi can i have exact syntsx of sort by using icetool.i have tried many times so please help.....problem on using verb
sort from(name1) to(name2) using(abcd)

can tell me how to use this using with exact code....
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu Sep 22, 2005 6:18 pm
Reply with quote

Hi Rahuldhar.

Its better if you an past your code so that we can say where exact error occured.

For Syntax you can go thru manual of ICTool


Regards

Rupesh
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Sep 22, 2005 7:09 pm
Reply with quote

Code:

//TOOLIN DD *
  SORT FROM(INDD) TO(OUTDD) USING(xxxx)
/*
//xxxxCNTL DD *
  SORT FIELDS=(p,l,t,o)
/*
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: Fri Sep 23, 2005 3:07 am
Reply with quote

Quote:
sort from(name1) to(name2) using(abcd)


This syntax is correct for the SORT operator of ICETOOL except that it must be all uppercase:

Code:

SORT FROM(NAME1) TO(NAME2) USING(ABCD)


An example of the DFSORT/ICETOOL JCL to go along with that to sort ascending on a 5-byte CH field in positions 11-15 would be:

Code:

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//NAME1 DD DSN=...  input file
//NAME2 DD DSN=...  output file
//TOOLIN DD *
SORT FROM(NAME1) TO(NAME2) USING(ABCD)
/*
//ABCDCNTL DD *
   SORT FIELDS=(11,5,CH,A)
/*


Quote:
i have tried many times so please help.....problem on using verb


Since you didn't show us the JCL you used, we can't tell you exactly what you did wrong. In the future, please post your complete JCL and error messages when you have a problem you want somebody to help you with.

Since you're obviously 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

You can also find lots of ICETOOL examples in "z/OS DFSORT Application Programming Guide" which you can access from the same URL.
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 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top