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
 

 

How to run this assembler in rexx

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

New User


Joined: 25 Apr 2006
Posts: 32
Location: India

PostPosted: Tue May 16, 2006 11:36 pm    Post subject: How to run this assembler in rexx
Reply with quote

Hi all

I am coding a rexx program where i have to allocate a dataset.There's a chance that this dataset might be locked to another user who has exclusive access to that and it'll get freed eventually.Is there any option in ALLOC commnad like "WAIT" so that program will wait until resource get released or do i need do verify the resource status using SYSDSN RC and ALLOC RC in infitinite loop.I know infinite is not a good idea since im buring CPU time.Any thoughts here.

I came accross an assemmbler routine which uses "STIMER" option to get the program instructions out of real storage for specified period of time and we can run this using rexx.

Any idea about how to run this assembler in rexx.

Thanks for the help
Satya
Back to top
View user's profile Send private message

jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Wed May 17, 2006 4:22 am    Post subject:
Reply with quote

You can find a sleep routine on the internet.
Back to top
View user's profile Send private message
satya12

New User


Joined: 25 Apr 2006
Posts: 32
Location: India

PostPosted: Wed May 17, 2006 5:28 am    Post subject: Re: Rexx question
Reply with quote

Hi

I have the sleep routine with me but not sure how to call it in REXX.You have any sample code with you and can you tell me the steps to execute it.

Thanks
Satya
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Wed May 17, 2006 6:03 pm    Post subject:
Reply with quote

if bpxwdyn('alloc fi(sdsfdd) new space(5,5) cyl',
'msg(2)')<>0 then do
say 'Temp data set allocation failed'
address syscall 'sleep 6'
return
end
Back to top
View user's profile Send private message
satya12

New User


Joined: 25 Apr 2006
Posts: 32
Location: India

PostPosted: Wed May 17, 2006 10:33 pm    Post subject: Re: How to run this assembler in rexx
Reply with quote

Hello jon_s_rice

Thank you very much.Its working.You are my Man.Now i have one more question.I have written a rexx script to display my own ISPF panel.If run this rexx in batch the panel is not getting diplayed.Is there anyway we can display panel using rexx through batch.

Thanks
Satya
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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am


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