I am looking for a solution for inserting lines after a particular line in every member in a pds. To be more specific I would like to change the output, wich was 1 record, now it is going to be 3 records. It varies in wich line this output is located.
I have guess to make it work Isredit Line after command.
Sorry if this question has already been asked, I seached the forum, but I had 8000 matches on my keywords, so I rather ask it again.
And then i use the macro. The key is to define a label (.here), and after that the line_after can be used. I did not succeed to pass variables at first, but I did not try vput vget so far, it should work..
I just did something similar. Note that the line_after can take a line number as argument, which allowed me to do:
l1 = 'first line inserted'
l2 = 'second line inserted'
l3 = 'third line inserted'
"line_after" n "= (l3)" /* insert in */
"line_after" n "= (l2)" /* reverse */
"line_after" n "= (l1)" /* order */