How to print N number of lines before and after the grep?

Hi ,
My record file , need to print up to above (DATA array)(there may be n no lines ) , grep "myvalue" row now .....suggest me some options

--- DATA Array---
record type xxxxx
sequence type yyyyy
2
3---> data1 
/dev/
--- DEVICE ---
MAXIMUM_People=[SUB device ]
data_blocks=[GET details ]
MY_value=2
xyz
abc 
people =[xxxxxxxxxxxxx]