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
 

 

sort using icetool

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: sort using icetool
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: 464

PostPosted: Thu Sep 22, 2005 6:18 pm    Post subject: Re: sort using icetool--urgent
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    Post subject: Re: sort using icetool
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 Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Sep 23, 2005 3:07 am    Post subject:
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:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html

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    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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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