Page 1 of 1

Add a Line at row 1 after a pipe command

PostPosted: Thu Feb 13, 2020 8:01 pm
by kordie1
Hello Guys,

a few words to myself before you read this:
Iam 21 years old and just finished my apprenticeship a month ago, so iam really new to this hole topic.

I have a Problem with a Rexx programm. At the moment iam trying to automaticly
cut the logs from the perfsvm user to a csv file, so that our monitoring software can work with it.
That works really fine but for one file i need to add a row for a headline in the beginning.
I read about lineout and execio but i couldnt bring it to work, i think iam just to bad for that at the moment :D

Do you have any idead how the pipe command can start writing the new file at line 2?
And how i can add a line (TIME;%CPU;TOTAL;DASD) on row 1?

1.png


Thank you so much :)

Re: Add a Line at row 1 after a pipe command

PostPosted: Fri Feb 14, 2020 3:11 pm
by kordie1
Okay i found a solution :)

Unbenannt.png


One question, is there a possibility to cut :
N 13-18 N
these lines out but add a 0 before it?

Re: Add a Line at row 1 after a pipe command

PostPosted: Sat Feb 15, 2020 7:29 am
by Pedro
fyi. I have not seen very many questions (and less answers) about PIPES in this forum. Pipes is not part of rexx.

Re: Add a Line at row 1 after a pipe command

PostPosted: Sat Feb 15, 2020 4:55 pm
by willy jensen
Pipes is not part of rexx

And what a pity that is.