Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PARSE EXTERNAL accidentally queries the stack #68

Open
mgrossmann opened this issue Mar 19, 2021 · 2 comments
Open

PARSE EXTERNAL accidentally queries the stack #68

mgrossmann opened this issue Mar 19, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@mgrossmann
Copy link

Hey together,

regarding to my discussion here I believe bREXX behaves incorrectly when executing the PARSE EXTERNAL statement.

I am trying to get input from the user, but I already have data on the stack. So PARSE PULL will use the data from the stack and will not prompt the user. This should be solved by PARSE EXTERNAL.

t bug exec

/* REXX */                              
PARSE EXTERNAL INPUT                           
SAY "GOT > "INPUT
 
/* TO PUT SOME DATA ON THE STACK */                               
'IDENTIFY ( LIFO'                           

PARSE EXTERNAL INPUT                           
SAY "GOT > "INPUT       

PARSE PULL NAME DUMMY
SAY "I'AM "NAME                        

with bREXX it looks like:

Ready;   
bug                                                                          
1st input                                                                    
GOT > 1st input                                                               
GOT > MAINT    AT DRNMIG1A VIA RSCS     17:06:11 03/19/21 GMT     FRIDAY      
2nd input                                                                    
I'AM 2nd                                                                     
Ready;      

but it should be like this:

Ready;                      
bug                         
1st input                   
GOT> 1st input               
2nd input                   
GOT> 2nd input               
I'AM MAINT                  
Ready;    
@BobBolch
Copy link
Collaborator

BobBolch commented Apr 5, 2021

This is a bug. PARSE EXTERNAL needs to call recently added entry point @@RDDRCT
via CMSdirectRead instead of @@RDTERM via CMSconsoleRead

@BobBolch
Copy link
Collaborator

BobBolch commented Apr 5, 2021

Only the VM Community Edition has the CMS mod to make this work.

@RossPatterson RossPatterson added the bug Something isn't working label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants