]I'm pullin' my freekin hair out here
... writing an RPG pgm to run a command.
The command parms have single quotes around literal values.
I need to have the same single quotes around a variable.
I'm trying to define the constant "doclist" to contain the single quotes necssary
when executing the command. I need to do the same for the character variable "pfldr".
Why is this so difficult??
Also as an aside, if someone could tell me what i'm doing wrong with the procedure interface....
i would like to have the "plfdr" parameter be a variable length field instead of fixed.
Here is my code:

The command parms have single quotes around literal values.
I need to have the same single quotes around a variable.
I'm trying to define the constant "doclist" to contain the single quotes necssary
when executing the command. I need to do the same for the character variable "pfldr".
Why is this so difficult??
Also as an aside, if someone could tell me what i'm doing wrong with the procedure interface....
i would like to have the "plfdr" parameter be a variable length field instead of fixed.
Here is my code:
PHP Code:
Fifs_list if e disk rename(ifs_list:ifs_lstr)
*
* PARAMETER LIST
*
D EntryParms pr extpgm('IFS001')
D pfldr 80a Const
D pfile 10a Const
D EntryParms pi
D pfldr 80a Const
D pfile 10a Const
*
D doclist c const('/qsys.lib/hhpifsrc.lib/ifs_+
D list.file/ifs_list.mbr')
*
D qcmdexc pr extpgm('QCMDEXC')
D cmd 3000a const options(*varsize)
D cmdlen 15p 5 const
*
D cmdstring s 512a
*
*---------------------------------------------
** M A I N
*---------------------------------------------
/free
cmdstring = 'cfghttpsch option(*crtdocl) doclist(' + doclist + ') ' +
'strdir(' + %trim(pfldr) + ') subtree(*none) pattern(''*'')';
qcmdexc(cmdstring:%len(cmdstring));
--------------------------------------------------------------------
Comment