FLAM Issue Tracker - CLE/P
View Issue Details
0000537CLE/P[All Projects] z. Otherpublic2014-08-11 12:502016-12-16 08:56
Tilo Eckert 
Falk Reichbott 
normalfeaturehave not tried
0000537: Generate property files based on command templates
The user should be able to enter any flcl command string as a command template which is converted into a property file for later use. In the ideal case, the user then only needs to specify the input and output filenames for batch processing.

flcl --totemplate=filename.prop conv 'read.rec(recf=FB recl=80 suppad) write.text(suptws ccsid=UTF-8)'
flcl --usetemplate=filename.prop 'read.rec(name=infile.rec) write.text(name=outfile.txt)

Or even better:
flcl --totemplate=filename.prop conv 'read.rec(name=%% recf=FB recl=%% suppad) write.text(suptws ccsid=UTF-8 name=%%)'
flcl --usetemplate=filename.prop infile.rec 80 outfile.txt

There are multiple possible variations to implement this:
*Write the template using the normal property file mechanism for a specific owner. Then use the template via the --owner Flag suggested in 0000536.
*Generate the template independently of any owner into a standalone property file. The file must be explicitly passed to flcl to use it (see example above)
*When generating the template property file: Include any property that would be pulled from other property files (global, command specific) as if the command would be executed; when using it: only use the template property file, ignore other property files.
No tags attached.
Issue History
2014-08-11 12:50Tilo EckertNew Issue
2014-08-11 12:50Tilo EckertStatusnew => assigned
2014-08-11 12:50Tilo EckertAssigned To => Falk Reichbott
2014-08-11 12:58Falk ReichbottProjectFL5 => CLE/P
2014-08-11 12:58Falk ReichbottCategory1.1 FLCL => z. Other
2014-08-11 13:00Falk ReichbottProduct Version5.0 => 1.1
2014-08-11 13:00Falk ReichbottTarget Version => 1.2
2014-08-11 13:00Falk ReichbottView Statusprivate => public
2016-12-16 08:56Falk ReichbottTarget Version1.2 => 1.4

There are no notes attached to this issue.