View previous topic :: View next topic
|
Author |
Message |
rahuldhar
New User
Joined: 22 Apr 2005 Posts: 1
|
|
|
|
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 |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
Code: |
//TOOLIN DD *
SORT FROM(INDD) TO(OUTDD) USING(xxxx)
/*
//xxxxCNTL DD *
SORT FIELDS=(p,l,t,o)
/*
|
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|