MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TOOLIN pointing to input file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Mon May 26, 2014 3:35 am    Post subject: TOOLIN pointing to input file Reply with quote

All the examples I see when googling use the idea of
Code:

//TOOLIN DD *
 here comes the icetool instructions
/*


What I can't seem to find is an example that uses a file as the input to TOOLIN. I have an example that I want to use whereby my JCL is
Code:

//TOOLIN   DD DSN=xxx.xxx.DATA(K9310001),DISP=SHR

and the file itself contains (there is a blank before each instruction)
Code:

 OPTION COPY                         
 OUTREC FIELDS=(1,96,X'0000',97,84) 

When I submit this, I'm seeing the following
Quote:

ICE600I 0 DFSORT ICETOOL UTILITY RUN STARTED

ICE650I 0 VISIT http://www.ibm.com/storage/dfsort FOR ICETOOL PAPERS, EXAMPLES

ICE632I 0 SOURCE FOR ICETOOL STATEMENTS: TOOLIN


ICE630I 0 MODE IN EFFECT: STOP

OPTION COPY
Å
ICE614A 0 INVALID OPERATOR
ICE602I 0 OPERATION RETURN CODE: 12

ICE630I 2 MODE IN EFFECT: SCAN

OUTREC FIELDS=(1,96,X'0000',97,84)
Å
ICE614A 0 INVALID OPERATOR


ICE601I 0 DFSORT ICETOOL UTILITY RUN ENDED - RETURN CODE: 12


What am I doing wrong ?
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Mon May 26, 2014 6:50 am    Post subject: Reply with quote

Just quickly to get you going, those are SORT Control Cards, not ICETOOL operators.

For SORT, you use SYSIN not TOOLIN. Can also be a dataset, though again, for simplicity, you'll mostly see examples with DD *. SORT Control Cards need to be prefixed by at least one blank.

In the DFSORT Application Programming Guide, you'll find a Chapter devoted to ICETOOL. You'll see the ICETOOL operators work one-at-a-time, input data to output data, though multiple operators can be used within a step. ICETOOL Operators do not need to be prefixed by any blanks.

If you want to modify the action of an ICETOOL Operator, you specify USING(nnnn) and then have a CNTL DDname, which can contain the SORT Control Cards needed. Again,this can be a dataset, though most examples you will find will be DD *...

TOOLIN - ICETOOL Operators
SYSIN - SORT Control Cards
nnnnCNTL - USING(nnnn) to modify data for an ICETOOL Operator specifying USING(nnnn)
JNF1CNTL/JNF2CNTL - SORT Control Cards for JOINKEYS Subtasks

For convenience, examples of all of the above will be DD * likely, but there is no difference if a permanent dataset is supplied. Needs to be 80-byte LRECL.
Back to top
View user's profile Send private message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Mon May 26, 2014 9:01 am    Post subject: Reply with quote

Thanks William. Soon after I'd posted the topic, I realised my mistake. I did find an example which got me on my way.

Thanks again
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Mon May 26, 2014 10:54 am    Post subject: Reply with quote

No problem.

I'm not remotely convinced that the link provides a good source of material , but, it's on the internet, so it must be fine Smile
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Tue May 27, 2014 11:30 am    Post subject: Reply with quote

misi01 wrote:
Thanks William. Soon after I'd posted the topic, I realised my mistake. I did find an example which got me on my way.

Thanks again


Misi01,

Just so you are aware you could have searched this forum itself and would have found tons of examples on this board

Back to top
View user's profile Send private message Send e-mail Visit poster's website
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Wed May 28, 2014 12:40 am    Post subject: Kolusu Reply with quote

I don't consider myself that lazy. Before I append a query, I do 2 things:-
1 A normal google (I just tried again using the search criteria toolin +file +input)
2 A search on this site using the appropriate forum (again using the search criteria above).

In the former case, I found nothing that seemed revelant. In the latter case, I found a minimum of 9 pages. I simply don't have time (at work) to wade through these pages looking at eacxh and every one of the entries to see if it fits. I know there are a lot of experienced, kind-hearted members out there who can and are prepared to answer my question, so that's the path I take.

Now, there is another alternative. Either the search engine on this forum is "limited" (generally, my experience has been that using this site's search engine doesn't usually give me the answer I'm looking for even if it might be there somewhere) or it possibly is ignoring things like the + sign in the search.

Feel free to show me the search criteria that would have given me my answer as well as how many pages I would have needed to wade through to find it

This isn't a "complaint" about this site in any way, it's simply reality (for me) as to why I post a query. (At the end of the day, those of us who do search and find the answer never post the question. Those of us who do post a question might well have searched and not been able to find the answer. It's easy to search when you know what criteria will give you the answer you're looking for, but if you don't use exactly those criteria, you won't find that answer)
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Wed May 28, 2014 10:44 am    Post subject: Re: Kolusu Reply with quote

misi01 wrote:
I don't consider myself that lazy.


Misi01,

I am not sure as to where you got that information but none of us said anything remotely close to that. The reason I provided the search option in this forum, as you scoured the internet to find a posting which is nothing but a copy of the postings by me and Frank. I was merely directing you to use the SOURCE of information itself.


misi01 wrote:

Feel free to show me the search criteria that would have given me my answer as well as how many pages I would have needed to wade through to find it


Well there are many ways to narrow down the search on this site. As shown above you can narrow it down by section and if you are looking for a SORT question, you are 100% guaranteed to find a solution using the field "Search for Author:" Put in my Username (KOLUSU) or FRANK* and you will find the solution. The + signs works too. You can choose the results to be POSTS instead of TOPICS if you want a glimpse of the posting that found your string.

Another option is to use your favorite Google search to search within mvsforums. ie have the strings you want to search and add mvsforums at the end

something like this

Toolin+icetool+mvsforums
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Fri May 30, 2014 12:41 am    Post subject: Reply with quote

Sorry Kolusu. My lazy comment was just that, a comment. You know as well as I do that there are LOADS of people out there who append and haven't even made the first attempt to find the answer. I was just trying to say, I don't belong to them. You COULD accuse me of not looking long and hard enough BEFORE appending, but like most others with a job, I need a solution, prefereably today, rather than tomorrow.

I search a fair bit, append to this forum, then continue searching. GENERALLY speaking, I get an answer here before I find the solution elsewhere.
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group