Skip to main content
Question

How to retrieve parameters command with access proc ?

  • October 27, 2025
  • 2 replies
  • 35 views

Laurent Dupouy

Hello,

I want to retrieve parameters of my command tcl in a proc.

How can you this ?

For example :

I execute a proc named PROC01 with parameters.

I want to know the parameters to use inside the proc.

 

 

A proc :

PROC01

001 PQ

002 HSET-DEVICE

003 <how to use parameters line command ?>

004 PH

005 ...


 

 

And execute this in prompt :

: PROC01 6

 

In Basic programs, you can use tclread. But, with proc, how to do this ?

 

 

Thanks for your response,

 

2 replies

Brian Cram
Forum|alt.badge.img+3
  • Rocketeer
  • October 29, 2025

The short answer:

 

PROC01

001 PQ

002 HSET-DEVICE     (make sure there is a trailing space)

003 A2

004 PH

005 …

 

The long answer:

002 D

will display the entire input buffer (PROC01 6)

002 A1

will use the first space-delimited piece

002 A2

will user the second space-delimited piece

And so on.

 

More information in our documentation:

 

A command:

https://docs.rocketsoftware.com/bundle/d3_rg_104/page/d3/d3_all/source/reference_manual/proc_processor/a_command_PROC_processor.html

B command:

https://docs.rocketsoftware.com/bundle/d3_rg_104/page/d3/d3_all/source/reference_manual/proc_processor/b_command_PROC_processor.html

D command:

https://docs.rocketsoftware.com/bundle/d3_rg_104/page/d3/d3_all/source/reference_manual/proc_processor/d_command_PROC_processor.html


Laurent Dupouy
  • Author
  • New Participant
  • October 30, 2025

hi

Thank you for your response,

I think, I understand all !

it’s too easy ….

I used this with command “Sn”, but, I did not  know that I can use without “Sn” !

ok