Skip to content

Commit

Permalink
Merge pull request #8 from p-behr/master
Browse files Browse the repository at this point in the history
Replace library + old program name with new program name in LABEL ON …
  • Loading branch information
p-behr authored Jun 26, 2019
2 parents a7873f1 + 831ec0f commit c72500a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions qrpglesrc/CVTDDS.SQLRPGLE
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@
or currentStep = LABEL_TABLE;
if currentStep <> LABEL_TABLE;
// Remove the hard-coded library name
scratchPad = %scanrpl(%trim(inLib) + '.' : '' : inSource);
// and use the new system name
scratchPad = %scanrpl( %trim(inLib) + '.' + %trim(inFile)
: %trim(inNewFile)
: inSource );
WriteSource(scratchPad);
currentStep = LABEL_TABLE;
else;
Expand All @@ -158,7 +161,11 @@
elseif StartsWith(%trim(inSource) : 'LABEL ON COLUMN ')
or currentStep = LABEL_COLUMN;
if currentStep <> LABEL_COLUMN;
scratchPad = %scanrpl(%trim(inLib) + '.' : '' : inSource) ;
// Remove the hard-coded library name
// and use the new system name
scratchPad = %scanrpl( %trim(inLib) + '.' + %trim(inFile)
: %trim(inNewFile)
: inSource );
WriteSource(scratchPad);
WriteSource('(');
currentStep = LABEL_COLUMN;
Expand Down

0 comments on commit c72500a

Please sign in to comment.