| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
Prathap Pillai P
Joined: 08 Sep 2005
Posts: 16
|
| Posted: Thu Oct 12, 2006 12:40 pm Post subject: Changing a string in a flat file |
|
|
| I have a string (say AA)in a flat file(not fora PDS member) and i want to change all the string starting with AA to BB.Is there any JCL utility to do the same. |
|
| Back to top |
|
guptae
Joined: 14 Oct 2005
Posts: 1025
Location: Bangalore,India
|
| Posted: Thu Oct 12, 2006 12:49 pm Post subject: |
|
|
Hi Prathap,
please refer ur prev post.
http://ibmmainframes.com/viewtopic.php?t=14500&highlight=
Just give ur flat file name . |
|
| Back to top |
|
Prathap Pillai P
Joined: 08 Sep 2005
Posts: 16
|
| Posted: Thu Oct 12, 2006 2:02 pm Post subject: Re: Changing a string in a flat file |
|
|
Hi Ekta
I tried that but it didnt work,So if u have any JCl for Flat files. Please send it across me.
Thanks
Prathap |
|
| Back to top |
|
shreevamsi
Joined: 23 Feb 2006
Posts: 320
Location: Hyderabad,India
|
| Posted: Thu Oct 12, 2006 3:59 pm Post subject: |
|
|
IF there is FILEAID utility in your Shop, Try this JCL:
//**
//STEP010 EXEC PGM=FILEAID
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSTOTAL DD SYSOUT=*
//DD03 DD DISP=SHR,DSN=XXX.XXXX.XXXX
//SYSIN DD *
$$DD03 UPDATE ME=9999,
EA=(1,0,T"TAX",C"TAX1")
/*
~Vamsi |
|
| Back to top |
|
Prathap Pillai P
Joined: 08 Sep 2005
Posts: 16
|
| Posted: Thu Oct 12, 2006 5:12 pm Post subject: Re: Changing a string in a flat file |
|
|
Hey Vamsi,
Thanks its working |
|
| Back to top |
|
Frank Yaeger
Joined: 15 Feb 2005
Posts: 4579
Location: San Jose, CA
|
| Posted: Tue Sep 02, 2008 11:26 pm Post subject: |
|
|
You can now use DFSORT's new FINDREP function available with z/OS DFSORT V1R5 PTF UK90013 (July, 2008) to do this kind of thing quite easily like this:
Code:
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
INREC FINDREP=(IN=C'AA',OUT=C'BB')
/*
For complete details on the new FINDREP function and the other new functions available with PTF UK90013, see:
www.ibm.com/systems/support/storage/software/sort/mvs/ugpf/ |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|