IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

MACRO basics


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Dec 08, 2010 3:24 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Dec 08, 2010 3:39 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Dec 08, 2010 3:49 pm
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 08, 2010 4:11 pm
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

Superior Member


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

PostPosted: Wed Dec 08, 2010 8:43 pm
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 08, 2010 11:22 pm
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
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

Superior Member


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

PostPosted: Thu Dec 09, 2010 4:18 pm
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: 2481
Location: @my desk

PostPosted: Thu Dec 09, 2010 4:43 pm
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

Moderator Emeritus


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

PostPosted: Thu Dec 09, 2010 9:53 pm
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: 1788
Location: Bloomington, IL

PostPosted: Thu Dec 09, 2010 11:08 pm
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: 2481
Location: @my desk

PostPosted: Fri Dec 10, 2010 10:53 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts Issues with executing a REXX MACRO th... TSO/ISPF 4
No new posts Facing issue in Run Edit Macro Job CLIST & REXX 9
No new posts outtrap does not capture within an ed... CLIST & REXX 1
Search our Forums:

Back to Top