Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Call Natural program with rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Call Natural program with rexx
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: 2205
Location: Silicon Valley

PostPosted: Wed Sep 09, 2020 8:33 am    Post subject: Reply to: Call Natural program with rexx
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: 2205
Location: Silicon Valley

PostPosted: Fri Sep 11, 2020 3:32 am    Post subject: Reply to: Call Natural program with rexx
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    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 TWS PIF (EQQYCOM) Rexx - Occurrence S... Richard Baker IBM Tools 0 Wed Sep 16, 2020 10:45 am
No new posts CA Sysview - JCL or Rexx - Read or Ex... Jasi CA Products 4 Wed Aug 05, 2020 9:19 pm
This topic is locked: you cannot edit posts or make replies. Invoke REXX thru JCL to expand the co... spizen556 CLIST & REXX 2 Sun Jul 26, 2020 3:53 pm
No new posts Unable to scroll in REXX panel KeshavKunal CLIST & REXX 4 Tue Jul 21, 2020 3:55 pm
No new posts REXX tool to extract all files starti... KeshavKunal CLIST & REXX 4 Tue Jul 21, 2020 3:43 pm

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us