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
 

 

ICETOOL in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
mathi.vanan

New User


Joined: 11 Jan 2012
Posts: 18
Location: INDIA

PostPosted: Tue Mar 06, 2012 6:40 pm    Post subject: ICETOOL in REXX
Reply with quote

I am trying to use ICETOOL in REXX as below

Code:
"FREE FI(TOOLMSG DFSMSG INREC OUTREC CTL1CNTL LENDIST TOOLIN)"
"ALLOC FI(TOOLMSG) DA(*)"
"ALLOC FI(DFSMSG) DUMMY"
"ALLOC FI(INREC) DA('<<>>>') OLD"
"ALLOC FI(OUTREC) DA('<<<>>>') OLD"
"ALLOC FI(LENDIST) DA(*)"
"ALLOC FI(CTL1CNTL) DA('<<<>>>') SHR REUSE"
"ALLOC FI(TOOLIN) DA('<<<<>>>') SHR REUSE"
ADDRESS LINKMVS ICETOOL

I want to change the CTL1CNTL everytime based on certain conditions. Is there a possibility that in the above code, i can hardcode the CTL1CNTL (control card for ICETOOL) with appropriate variable names (instead of using a dataset for the control card), so that my control card changes dynamically?

I am a beginner in REXX and i am stuck with trying the correct syntax for this need.

Can someone help me out? Please let me know if my question is not clear.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Mar 06, 2012 6:46 pm    Post subject:
Reply with quote

how many threads about the same idiotic problem are you going to make?
Back to top
View user's profile Send private message
mathi.vanan

New User


Joined: 11 Jan 2012
Posts: 18
Location: INDIA

PostPosted: Tue Mar 06, 2012 6:53 pm    Post subject:
Reply with quote

@dbz:

Unfortunately, deleting a thread is not allowed to all members. I accept my fault in posting the same query in another forum. I was unable to delete the thread that was posted in DFSORT/ICETOOL..

Moreover, do you have an answer or any suggestion that you see as an 'idiotic' problem?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Mar 06, 2012 7:19 pm    Post subject:
Reply with quote

yeah, i have a suggestion (or two):

if you start a thread in an incorrect forum,
ask a moderator to move the thread.

look at the answer which superk provided in your other thread.

all things being equal and having little info about your problem,

you can populate any control cards that you want in a ds.
if you are generating multiple jobs, then use a different dsn for you DSN parm.

the idiotic problem is actually your inability to post a meaningful question.
take the time to explain fully what you are doing and where you need help.
do not expect us to figure out what you meant from what little you have said,
other than
you are a poor little picked-upon poster,
who is using an internet forum in an attempt to disguise his incompetence from his workplace.
Back to top
View user's profile Send private message
mathi.vanan

New User


Joined: 11 Jan 2012
Posts: 18
Location: INDIA

PostPosted: Tue Mar 06, 2012 7:43 pm    Post subject:
Reply with quote

@dbz:
Thanks for your suggestion.

I need to change certain number of texts in all the members of the PDS. Say for eg..

MEMBER 1 has:
TEXT1 -------------
------- TEXT1 -----
---------------TEXT1

MEMBER 2 has:
TEX2---------------
--------------TEXT2
-------TEXT2-------

etc....

here TEXT1 shud be changed to DATA1, TEXT2 should be changed to DATA2

I have the original and final text values read from a file.

I would be executing the above mentioned rexx code in a loop to pick appropriate member names for changes.

I wanted to know if there is a possibility to run the above piece of code by hardcoding the control card statements with the rexx code, rather than creating individual control card members.

I understand that there are situations of not getting the clear requirement or question. I did mention 'Please let me know if my question is not clear'

Rather than typing a bunch of unnecessary harsh words as a response, you could have asked me to explain clearly.

I would follow a 'rule(z)' that all my posts have clear questions going forward.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Tue Mar 06, 2012 7:53 pm    Post subject: Reply to: ICETOOL in REXX
Reply with quote

So, you're going to have to try again.

If you want to use ICETOOL and CTL1CNTL then you put the current values you want to use on the CTL1CNTL and use ICETOOL. rexx can be used for this task. You can do it more than once in a program, if you feel the need.

If you want to do the work in rexx alone, just forget ICETOOL.

ICETOOL does not know anything about getting control cards from rexx, but does know about CTL1CNTL. rexx can know about CTL1CNTL if you feel like it.

Now, what did you want to ask?
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Tue Mar 06, 2012 8:08 pm    Post subject:
Reply with quote

Holy crap, why the fecking hell don't you use a tool that is suitable for the task, like an edit macro.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Mar 06, 2012 9:03 pm    Post subject:
Reply with quote

a few thoughts:

1. the TS does not want to execute a job
jobs have a cost factor, where as foreground mode is not directly costed

2. the TS wants to sort multiple files within a session, thus the 'loop' requirement.

3. addressing the question of hardcoded control cards:
you invoke ICETOOL,
and background or foreground, regardless,
ICETOOL expects to have certain DS's allocated.
if you mean by hardcoded, inline data stream,
no, not in foreground mode
.


4. you have input file with 'before and after control cards',
you will have to explain that
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Mar 07, 2012 1:47 pm    Post subject:
Reply with quote

Click HERE for an example of creating ICETOOL statements in REXX depending on the PARM= values selected, and also invoking the product from REXX.

Although Prinos suggestion seems far more appropriate.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm


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