omite change for lines



Compuware's data management products: File-AID for IMS, File-AID/MVS, File-AID for DB2 and DBA-XPERT for DB2

omite change for lines

Postby sjrcreation » Wed Feb 29, 2012 12:08 pm

hi ,
need a help here.. i got an answer in sort but my file is a PDS, which has the record as below. sort can t able to handle PDS so can we do in fileaid for the below req. Thanks in advance.
i have a file like (member of a PDS)

d00124 g1245 test xxxx
d00124 g1245 main xxxx
d00124 g1245 main xxxx
d00124 g1245 main xxxx
d00124 g1245 main xxxx

requirement : when i find a text : "Test" then i need to change 4th line char ..

o/P:
d00124 g1245 test xxxx
d00124 g1245 main xxxx
d00124 g1245 main xxxx
d00124 g1245 main xxxx
d11111 g1245 main xxxx
sjrcreation
 
Posts: 30
Joined: Sat Dec 11, 2010 9:44 am
Has thanked: 0 time
Been thanked: 0 time

Re: omite change for lines

Postby NicC » Wed Feb 29, 2012 12:29 pm

Of course DFSORT, and other sorts, can process a member of a PDS - severeal members if they are concatenated e,g,
//SORTIN  DD DSN=MY.PDS(MEM1),DISP=SHR
//        DD DSN=MY.PDS(MEMZ),DISP=SHR
//        DD DSN=MY.PDS(MEM6),DISP=SHR
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: omite change for lines

Postby sjrcreation » Wed Feb 29, 2012 4:30 pm

hi Nic,
Thanks for the reply, i too know DD Concatenate but the input member will vary .. ie no of member will differ so cant hard code it in jcl.
this is y i want to try in other utility.. :(
sjrcreation
 
Posts: 30
Joined: Sat Dec 11, 2010 9:44 am
Has thanked: 0 time
Been thanked: 0 time

Re: omite change for lines

Postby enrico-sorichetti » Wed Feb 29, 2012 5:48 pm

I guess that only <sort> and friends have the clauses/construct for such a task out of the box

for any other product You will have to do some programming

how comfortable are You with ISPF services and ISPF EDIT macro services and REXX

will an <ad hoc> REXX script using ISPF services pass the acceptance process of YOur organization
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: omite change for lines

Postby sjrcreation » Wed Feb 29, 2012 6:28 pm

yes Enrico,
i do rexx prog.
sjrcreation
 
Posts: 30
Joined: Sat Dec 11, 2010 9:44 am
Has thanked: 0 time
Been thanked: 0 time

Re: omite change for lines

Postby enrico-sorichetti » Wed Feb 29, 2012 7:01 pm

see here for an edit macro to apply another edit macro to all the member of a pds
http://ibmmainframes.com/about25947.html
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times


Return to File-AID

 


  • Related topics
    Replies
    Views
    Last post