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
 

 

MACRO basics

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Wed Dec 08, 2010 3:23 pm    Post subject: MACRO basics
Reply with quote

/* rexx */
trace i
address ispexec
"isredit macro"
"isredit exclude all"
exit

Above is my rexx macro code.. its simple but has error. If i trace it it shows me rc=20.

when I trying to invoke it it says macro cannot be found even I have altlib activated the dataset.
Can anybody help?
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 Dec 08, 2010 3:24 pm    Post subject:
Reply with quote

Foreground or batch ? Would hazard a guess at foreground but just to be sure

Invoked how
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Wed Dec 08, 2010 3:34 pm    Post subject:
Reply with quote

Foreground or Batch I couldnt get you

I have created this sample file written some sample records.
Now on the command line I am writing the macro name.
It is saying the it(macroname) could not be found though the dataset in which macro reside is altlib activated.
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 Dec 08, 2010 3:39 pm    Post subject:
Reply with quote

Do you run it from the session id that processed the ALTLIB
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Wed Dec 08, 2010 3:44 pm    Post subject:
Reply with quote

Yep from the same ID from which I have logged in.

Actually I am new to this new company environment earlier I wrote codes without error and could not even found any sample code here to refer.

Can there be any chances of authorization or something.
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 Dec 08, 2010 3:49 pm    Post subject:
Reply with quote

Not from the same ID that you logged in as
By session id I mean the screen (session) id
You process the ALTLIB from one of the open screens, and then without swapping screen you then try and execute the macro.
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Wed Dec 08, 2010 3:58 pm    Post subject:
Reply with quote

.. this error I know .. anyways I sorted it out... I logdoff and logdin again altlib activated .. then it work(god knows how) becos I earlier also did the same but donno...

Thanks Expat once again you solved my prob icon_smile.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 08, 2010 4:11 pm    Post subject:
Reply with quote

IIRC ISPF does a Build Directory Entry List for its datasets. So it cant find a new entry. Going out of ISPF to the TSO prompt and starting ISPF will do the job.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 08, 2010 8:43 pm    Post subject:
Reply with quote

Quote:
then it work(god knows how) becos I earlier also did the same but donno
God wrote:
Going out of ISPF to the TSO prompt and starting ISPF will do the job
Peter - my nephew has got a long wish-list for this X'mas...icon_biggrin.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 08, 2010 11:22 pm    Post subject:
Reply with quote

Quote:

Peter - my nephew has got a long wish-list for this X'mas...


Anuj,

with all respect, there is also a XMas in India? If yes how do people in India celebrate it?
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Thu Dec 09, 2010 8:34 am    Post subject:
Reply with quote

Quote:
then it work(god knows how) becos I earlier also did the same but donno
God wrote:
Going out of ISPF to the TSO prompt and starting ISPF will do the job


Nice one Anuj , it seems God prompted the same to me ;) ...
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Dec 09, 2010 4:18 pm    Post subject:
Reply with quote

Yes, X'Mas is celebrated in India too and with full conviction, Peter. A sizeable population of the Christian Community resides in Mumbai (of the Indian state of Maharashtra) and is mainly Roman Catholics. It is a delight to watch their homes during Christmas.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2171
Location: @my desk

PostPosted: Thu Dec 09, 2010 4:43 pm    Post subject:
Reply with quote

Even non-Christian's do celebrate X'mas. Our X'Mas star has already started shining. icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Dec 09, 2010 9:53 pm    Post subject: Reply to: MACRO basics
Reply with quote

Quote:
Even non-Christian's do celebrate X'mas.

Thanks to effective marketing icon_smile.gif

And i have long wondered who put the X in Christmas. . . icon_neutral.gif
Some cheap sign-maker or newspaper/magazine printer perhaps. . .

d
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Thu Dec 09, 2010 11:08 pm    Post subject: Re: Reply to: MACRO basics
Reply with quote

dick scherrer wrote:
And i have long wondered who put the X in Christmas. . . icon_neutral.gif
Some cheap sign-maker or newspaper/magazine printer perhaps. . .

Some Hellenized Hittite, probably; I think that khi has been used as an abbreviation for Khristos since around the third century CE.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2171
Location: @my desk

PostPosted: Fri Dec 10, 2010 10:53 am    Post subject:
Reply with quote

Sorry for going offff topic. icon_smile.gif
Quote:
And i have long wondered who put the X in Christmas
The "-mas" part is from the Latin-derived Old English word for "mass", while the "X" comes from the Greek letter Chi, which is the first letter of the Greek word which translated as "Christ".
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
No new posts Calling macro via rexx in batch mode. SanaR CLIST & REXX 15 Tue Mar 08, 2016 4:46 pm
No new posts Too many edit macro's and too few PF ... don.leahy TSO/ISPF 7 Wed Feb 17, 2016 3:00 am


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