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

Call Natural program with rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shahaf

New User


Joined: 28 Nov 2018
Posts: 8
Location: israel

PostPosted: Tue Sep 08, 2020 11:22 am
Reply with quote

Hi,

I have a Rexx program that calls natural program within a loop for a round 500-600 times.
but for some reason the JCL stuck at call 300 and doesn't continue (the job is still active but the program is stuck).
i call the natural program using "ADDRESS ATTCHMVS "

Is someone Familiar with this problem?

Thanks.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2545
Location: Silicon Valley

PostPosted: Wed Sep 09, 2020 8:33 am
Reply with quote

I just looked at the Rexx Reference manual; I do not think it is clear or perhaps my understanding is not clear about ATTACH...

but I think ATTACH and ATTCHMVS invoke the MVS ATTACH macro internally. It will create an asynchronous process that runs in parallel to your rexx program. There is a possibility that you spawned 600 parallel tasks and they did not complete before the 601st was attempted. The system probably ran out of some resource.

Try using LINKMVS instead of ATTCHMVS. This will create a synchronous call. Your 'natural program' will execute and complete before it continues to the next rexx instruction.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2545
Location: Silicon Valley

PostPosted: Fri Sep 11, 2020 3:32 am
Reply with quote

Quote:
looked at the Rexx Reference manual; I do not think it is clear or perhaps my understanding is not clear


I sent feedback to the content developers at IBM. I asked them to clarify some of the details of the execution of ATTCHMVS.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top