how to fix misalignment in output dataset using rexx?



IBM's Command List programming language & Restructured Extended Executor

how to fix misalignment in output dataset using rexx?

Postby SKANDA » Thu Dec 08, 2016 11:46 am

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?
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

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

Postby willy jensen » Thu Dec 08, 2016 12:39 pm

Certainly, see the LEFT function in the manual. And CENTER and RIGHT for other alignments.

These users thanked the author willy jensen for the post:
SKANDA (Thu Dec 08, 2016 3:24 pm)
willy jensen
 
Posts: 455
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 69 times

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

Postby SKANDA » Thu Dec 08, 2016 3:27 pm

Thank you willy Jensen :)

it worked..
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post