how to fix misalignment in output dataset using rexx?

IBM's Command List programming language & Restructured Extended Executor
SKANDA
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Skillset: Cobol,jcl,rexx
Referer: prasanth

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?

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

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.

SKANDA
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Skillset: Cobol,jcl,rexx
Referer: prasanth

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..


  • Similar Topics
    Replies
    Views
    Last post