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
 

 

REXX execution in batch has error

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

New User


Joined: 20 Sep 2005
Posts: 14

PostPosted: Fri May 09, 2014 9:18 am    Post subject: REXX execution in batch has error
Reply with quote

Code:

/* REXX */                           
PARSE ARG SECONDS                     
SAY "SECONDS WAITING :" SECONDS       
SAY "CURRENT TIME :" TIME()           
IF SECONDS = "" THEN SECONDS = 5     
SECONDS = ABS(SECONDS)               
SECONDS = TRUNC(SECONDS,0)           
"CALL *(AOPBATCH) 'SLEEP "SECONDS"'" 
SAY "RELEASE TIME :" TIME()           
EXIT 0                               


When I execute this REXX from TSO using

Code:
 TSO REXXWAIT  10


it works fine. but when I want to execute in batch under

EXEC PGM=IKJEFT01

it gives error

Code:
AOP003E SLEEP: EDC5129I No such file or directory., errno2=53b006c


Any idea ?

Thanks,
Sena
Back to top
View user's profile Send private message

Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Fri May 09, 2014 1:07 pm    Post subject:
Reply with quote

I don't know what function you are calling but I assume that you want to wait for a specific period of time in your REXX program (for whatever strange reason).
I prefer this approach to wait for 1 second:
Code:
call syscalls 'ON'       
address syscall 'SLEEP 1'

That is easy to understand and does not rely on any additional software than pure REXX.
By the way: In my opinion a request for a WAIT is in nearly every case a strong indication of poor (or at least inappropriate) design. Please rethink your approach.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Fri May 09, 2014 4:12 pm    Post subject:
Reply with quote

Note that the error message is coming from the AOPBATCH program, not the Rexx interpreter. The program is probably attempting to use OMVS inappropriately.
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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 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 REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm


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