Hi All,

I am beginner in Perl Programming and I need your help to fullfill this requirement Below is the requirement

1. I have extracted some of the data from text file (as mentioned below).
2. I need to get List NAME called CT08LIST name and its group name starts with X (ex:XCT08L1) in another file. (Group name has MAPSETS and TRASACTIONS, it should come in another file)
3. I have below code which will get group name.
LIST NAME: CT08LIST ---------- ELEMENT NAME DATE ADDED ------- ---- ---------- GROUP DCT08L1 04.290 17:05 GROUP CT08CONN 04.290 17:05 GROUP TCLCT08 04.290 17:05 GROUP LSRCT08 04.290 17:05 GROUP FCT08L1 04.290 17:05 GROUP FCT08R1 04.290 17:05 GROUP XCT08L1 04.290 17:05 GROUP PCT08L1 04.290 17:05 GROUP JN22 04.290 17:05 GROUP LN08STAN 04.290 17:05 GROUP LNPCMI08 04.290 17:05 GROUP LN47SBBH 04.290 17:05 GROUP CT08CSMI 04.290 17:05 GROUP CT08 04.290 17:05 GROUP PCT08R1 04.290 17:05 GROUP RCT08L1 04.290 17:05 GROUP CT08NAM 04.290 17:05 GROUP RLSFILES 08.235 15:43 GROUP RLSPMM 08.299 17:35 GROUP ABEND50 11.035 20:41 GROUP CT08MQ 12.287 11:37
LIST NAME: CT09LIST ---------- GROUP NAME: XCT08L1 ----------
MAPSETS: AGCEM1 AGHEM1 AGMMM1 AGONM1 AGPEM1 + AGPUM1 AGREM1 AGRUM1 AGSEM1 AGSUM1 AGZ1M1 AGZ2M1 AGZ3M1 AGZ4M1 + AGZ5M1 TRANSACTIONS: ACBA ACBE ACBL ACBR ACBU + AGMM AGSU AGTO AST5 AST7 AST9 AXTO BAC1 BCA1 + BCA2 BCA3 BCA4 BCA5 BD11 BE1A BE44 BM16 BM17 + BM6A BSL3 BSVL BS09 BS11 BS12 BS13 BS14 BTM2 + BWR2 HMI8 IBVS IM01 IM02 IM03 IM07 IM18 IM21 + IM25 MSOD NPS2 STP1 XB01 XB02 XB03 XB04 XB05 + XB06 XB07 XB08 XB10 XB11 XB12 GROUP NAME: XCT09L1

In reply to Perl Script to extract pattern and redirect to another file by Raghu1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.