Page 1 of 2

Can I run a ".qmc" macro in my Rexx program?

PostPosted: Thu Mar 10, 2022 1:28 pm
by Robledo
Greetings friends of the mainframe!

I continue to learn in world of Rexx and Macros and today I like to know if I can run a .qmc macro file from my Rexx.

To give you an idea, my rexx is going to collect some form-type data (name, surname, date...) and then it goes and returns from the form to some panels within some transactions in which it inserts this data with the typical "Control +C / Control+V".

It would be a better idea to modify the database directly with the data it collects (which is what I suppose transactions do in my case) but at the moment my knowledges and rights do not allow me to do so hehehe

Thanks you very much in advance! :)

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Thu Mar 10, 2022 10:43 pm
by Pedro
run a .qmc macro

You provided some details, but not enough for me. What is a .qmc macro? Also, where is your rexx program being executed from?

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Fri Mar 11, 2022 9:10 am
by Pedro
if I can run a .qmc macro file from my Rexx

Perhaps tell us how you currently run the .qmc macro, then maybe we can suggest how to do from rexx.

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Fri Mar 11, 2022 11:58 am
by Robledo
Pedro wrote:
run a .qmc macro

You provided some details, but not enough for me. What is a .qmc macro? Also, where is your rexx program being executed from?


Hola Pedro! Me voy a aventurar a escribir en español puesto que por su nombre diria que hablamos el mismo idioma :lol:

Le explico un poco mi idea:

Tendré una Rexx que recogerà unos datos (nombre, apellidos, edad...) y con esos datos necesito ir a unos paneles de una transaccion CICS para tratarlos (crear usuarios en unos entornos y otro tipo de operaciones). Normalmente tenia un miembro en una biblio tipo formulario, el cual rellenaba a mano y después lanzaba la mencionada Macro de formato ".qmc" . Las utilizo mucho aunque no sé si se puede hacer eso de lanzarlas desde una Rexx. Las macros a las que me refiero son las que puedes grabar desde la barra de herramientas del Quick3270 con el simbolo tipico "circulo rojo", que luego puedes lanzar con la tipica "flecha" similar al boton "play" de un cassete.

El camino sencillo seria ir directamente a la base de datos y modificarla (que supongo que es lo que hace la transaccion) pero desconozco hacer toda esa parte, ni siquiera sé como localizar la base de datos y demàs...

También he visto que se pueden hacer macros en miembros dentro del Z pero no se parece nada al lenguaje que me encuentro en las macros que hago actualmente (las .qmc, que se guardan sobre windows) que al abrirlas son tipo script, ejemplo:

HostSettleTime = 3000 ; milliseconds
SendKeys "<Enter>"
Result = WaitForAttrib(13, 69, &H08, &H3C, 3, 3000)
Result = WaitForCursor(13, 70)
Result = WaitForKbdUnlock()


No sé si me he explicado bien en todo... no dudes en preguntarme si puedo aportarte mas informacion o necesitas mas datos, y muchas gracias por haberme respondido.

Recibe un saludo! :)

Cristian Robledo.

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Fri Mar 11, 2022 12:25 pm
by enrico-sorichetti
the official language of the forum is english.
posting in a different languge is considered bad manners

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Fri Mar 11, 2022 12:44 pm
by Robledo
enrico-sorichetti wrote:the official language of the forum is english.
posting in a different languge is considered bad manners


Sorry, I did not know. Cordially.

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Fri Mar 11, 2022 7:54 pm
by sergeyken
Lewis Carrol wrote:“I said it in Hebrew—I said it in Dutch—
I said it in German and Greek;
But I wholly forgot (and it vexes me much)
That English is what you speak!”

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Fri Mar 11, 2022 9:23 pm
by Robledo
sergeyken wrote:
Lewis Carrol wrote:“I said it in Hebrew—I said it in Dutch—
I said it in German and Greek;
But I wholly forgot (and it vexes me much)
That English is what you speak!”


I think it's clear now, thanks for your contribution.

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Fri Mar 11, 2022 10:05 pm
by enrico-sorichetti
got curious and googled
the most reasonable/credible result I got is
https://www.file-extensions.org/qmc-file-extension
so looks like the topic has nothing to do with mainframes

Re: Can I run a ".qmc" macro in my Rexx program?

PostPosted: Sat Mar 12, 2022 12:45 am
by Pedro
I googled for "qmc site:ibm.com"
and found some hits that seem to be related to IBM MQ, which I know nothing about.