Page 1 of 1

how to fix misalignment in output dataset using rexx?

PostPosted: Thu Dec 08, 2016 11:46 am
by SKANDA
please help me to fix this issue,

PUSH NEXTFILE , 'DCLGEN ' , LINE_COUNT , COMP
"EXECIO DISKW 1 OUTDD"
here NEXTFILE -> variable with dynamic length (xxx.yyy.zzz(mem1)),(xxx.yyy.zzz(memb2))
DCLGEN -> constant string
LINE_COUNT -> Variable with dynamic length(1234),(123)
COMP -> Variable with dynamic length (complex),(simple)
so when I view the report, it was like,
xxx.yyy.zzz(mem1) dclgen 1234 complex
xxx.yyy.zzz(memb2) dclgen 123 simple

actually I want to have report with constant alignment , like
xxx.yyy.zzz(mem1) {5space} dclgen {5space} 1234 {5space} complex
xxx.yyy.zzz(memb2){4space} dclgen{5space} 123 {6space} simple
Eventhough the length of dynamic variable varies ,I want to start the next string at constant position.
is this possible?

Re: how to fix misalignment in output dataset using rexx?

PostPosted: Thu Dec 08, 2016 12:39 pm
by willy jensen
Certainly, see the LEFT function in the manual. And CENTER and RIGHT for other alignments.

Re: how to fix misalignment in output dataset using rexx?

PostPosted: Thu Dec 08, 2016 3:27 pm
by SKANDA
Thank you willy Jensen :)

it worked..