>I have a prg file when ran invokes another application. So when a user inn my current application selects the wording 'Fabric Submission' another application is ran. I also have a parameter passed called artikey. Therefore how can I pass the parameter Artikey to my new program.
>
>My syntax for starting my other application is:
>
>! /n U:\questpdm\fabsum.exe
>
>I would now like to pass the parameter Artikey so I can use this with my new application. Can anybody help me please?
You would pass the parameter after the name of the executable:
! /n U:\questpdm\fabsum.exe "Parameter 1"
! /n U:\questpdm\fabsum.exe 123
Although the second example shows a number, the OS will pass it as text, so you have to receive it as such.
In the main program of fabsum.exe, you have to have a PARAMETERS or LPARAMETERS statement, to receive the parameters.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)