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: 2227
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: 2227
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 rexx pgm to create multiple ps file IBM Tools 7
No new posts Mainframe batch Job or REXX to get VT... CLIST & REXX 7
No new posts calling OMEGAMON from REXX CLIST & REXX 3
No new posts REXX allocated datasets in JCL CLIST & REXX 9
No new posts getting RC=3650 when invoking REXX wi... CLIST & REXX 7
Search our Forums:

Back to Top