Add a Line at row 1 after a pipe command



IBM's Command List programming language & Restructured Extended Executor

Add a Line at row 1 after a pipe command

Postby kordie1 » Thu Feb 13, 2020 8:01 pm

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 :)
You do not have the required permissions to view the files attached to this post.
kordie1
 
Posts: 2
Joined: Thu Feb 13, 2020 7:45 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby kordie1 » Fri Feb 14, 2020 3:11 pm

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?
You do not have the required permissions to view the files attached to this post.
kordie1
 
Posts: 2
Joined: Thu Feb 13, 2020 7:45 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby Pedro » Sat Feb 15, 2020 7:29 am

fyi. I have not seen very many questions (and less answers) about PIPES in this forum. Pipes is not part of rexx.
Pedro Vera
User avatar
Pedro
 
Posts: 605
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 44 times

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

Postby willy jensen » Sat Feb 15, 2020 4:55 pm

Pipes is not part of rexx

And what a pity that is.
willy jensen
 
Posts: 282
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 40 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post