Additional information provided to the customer it his case are:
The fact that you are requesting a "STACK" option indicates that you need or want to run VMPTFS from a program of some kind ... otherwise a STACK option has no value.
Here are a couple lines you can add to your program to easily get the VMPTFS output in a .STEM variable or STACK, then you can do whatever you need to do with the output:
<<< snip >>>
===== * * * Top of File * * *
===== /* Front End for VMPTFS */
=====
===== prod = 'VMSECURE'
=====
===== /* Issue VMPTFS Command and Capture Response */
===== 'PIPE CMD EXEC VMPTFS' prod ,
===== '| stem ptflist.'
=====
===== /* Use Response .stem. to Output File */
===== 'PIPE stem ptflist.' ,
===== '| > myptf data a'
=====
===== /* Use Response .stem. to the STACK ... */
===== 'PIPE stem ptflist.' ,
===== '| stack'
=====
===== Exit
===== * * * End of File * * *
<<< snip >>>
Using ... 'PIPE CMD EXEC VMPTFS' prod , ... should give you all the flexibility you need to deal with the output in your program.
If you want the output in the STACK instead of the CONS ... just change your PIPE to this:
<<< snip >>>
===== /* Front End for VMPTFS */
=====
===== prod = 'VMSECURE'
=====
===== /* Issue VMPTFS Command and put Response in STACK */
===== 'PIPE CMD EXEC VMPTFS' prod ,
===== '| STACK'
<<< snip >>>
Of course you need to write some code to take it from the STACK and do something else with it.