Page 1 of 1

Search Batch file-aid help

Posted: Mon Feb 27, 2006 1:40 pm
by frenchman
Hi,
I want to do mass update for all PDS in batch mode.
Example, I want replace 'PGM=X2005' by 'PGM=X2006'.
How to do ?
Where can i have a document for file-aid in batch mode.
Thank advance !

Posted: Mon Feb 27, 2006 6:25 pm
by Kalicharan
Hi,

If the position of 'PGM=X2005' is constant in all mebers of the PDS
then you can use below FILEAID pgm


//FAIDTSTS JOB (KALIC,TEST),'FAIDTSTS ',MSGCLASS=K,CLASS=C,
// NOTIFY=&SYSUID, REGION=2M
//************************************************************
//FAIDTST EXEC PGM=FILEAID
//************************************************************
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DD01 DD DSN=PDS,DISP=SHR
//DD01O DD DSN=PDS,DISP=SHR
//SYSIN DD *
$$DD01 UPDATE IF=(019,EQ,C'PGM=X2005'),REPL=(019,C' 'PGM=X2006')
/*

2) You can get from this Control Card also:
$$01 update ea=(POS,LEN,c'pgm=x2005',c'pgm=x2006')

3) or THRU IEBUPDATE


Thnaks
Kalicharan

Mass Update irrespective of Position -- FileAID

Posted: Tue Feb 28, 2006 6:32 pm
by Kalicharan
Mass Update irrespective of Position using FileAID Edit All option

//FAIDTSTS JOB (KALIC,TEST),'FAIDTSTS ',MSGCLASS=K,CLASS=C,
// NOTIFY=&SYSUID, REGION=2M
//************************************************************
//FAIDTST EXEC PGM=FILEAID
//************************************************************
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DD01 DD DSN=PDS,DISP=SHR
//DD01O DD DSN=PDS,DISP=SHR
//SYSIN DD *
$$01 update ea=(01,0,c'pgm=x2005',c'pgm=x2006')
/*


The second paramater 0(zero) points to entire row(search and updates entire row)

Thanks
Kalicharan

Posted: Thu Mar 09, 2006 7:45 pm
by arrbee
Karlicharan,

That is good piece of information and very useful.

Thanks.

Posted: Tue Mar 28, 2006 12:22 am
by Guest
hi

I need to change a lot of member in a pdf file. I am using fileaid for the first time and I am getting partial results.

I need to change (sometime it looks like this):
lp_parm.match_key = 'April 2006'
or
CALL PROCESS_LIST1 'April 2006 ~X'

to
lp_parm.match_key = 'October 2006'
CALL PROCESS_LIST1 'October2006 ~X'

When using a bacth job:

your edit profile using the command RECOVERY ON.
//JETTEDC JOB 27200,'JETTED',REGION=2048K,
// USER=JETTED,NOTIFY=JETTED,
// CLASS=T,MSGCLASS=X,MSGLEVEL=(1,1)
/*JOBPARM R=V07B,TIME=99,LINES=5
//OUT1 OUTPUT FORMDEF=0101,PAGEDEF=06061,
// JESDS=ALL,DEFAULT=Y,DEST=P399
//DELETE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE RH.LT.HIPERT2.SCRIPT.UR88R3.IPR
//BATCH EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*,HOLD=YES
//SYSLIST DD SYSOUT=*,HOLD=YES
//DD01 DD DISP=SHR,DSN=RH.LT.HIPERT2.SCRIPT.UR88R2.IPR
//DD01O DD DISP=(NEW,CATLG,DELETE),
// DSN=RH.LT.HIPERT2.SCRIPT.UR88R3.IPR,
// SPACE=(TRK,(389,250,50)),UNIT=SYSDA,
// DCB=(RECFM=VB,LRECL=256)
//SYSIN DD *
$$DD01 COPY REPL=(1,72,C'April 2006',C'October 2006')
/*
//*

I get the following result:
000059 lp_parm.match_key = 'OCTOBER 200 (this one is missing 6')
and
CALL PROCESS_LIST1 'OCTOBER 2006 ~X' (this one is ok)

Any help would be appreciated
Thanks

Posted: Tue Mar 28, 2006 4:22 pm
by arrbee
Hello,

What is the LRECL of your file?

"APRIL 2006" got 10 characters.
"OCTOBER 2006" got 12 characters.

I believe only equal length characters can be replaced. Otherwise, you need to increase the length of the file before you change the content.

Opinions welcome.

Posted: Tue Mar 28, 2006 5:30 pm
by Guest
Hi Arrbee

Thanks for your response my LRECL is set to 256. I have posted my batch job what would be your suggestion. As I mentionned this my first time using fileaid.

Thanks for your help :?:

Posted: Sat Oct 02, 2010 7:54 pm
by srinivas dasari
I don't know anything about FILEAID.
could you plz help me in this.
tell me the features of fileaid,
where we use ?
why do we use?
how can it is helpful for us

srinivasdasari@ymail.com

Posted: Mon Oct 04, 2010 1:13 pm
by Anuj Dhawan

Posted: Mon Oct 04, 2010 1:15 pm
by Anuj Dhawan
Also, do not post your personal e-mail IDs.

Posted: Wed Jul 10, 2013 4:03 pm
by anu alexander
in file-aid u can have the option f36 or pf36 infront of the pds will update members massively(mass update)

Topic deleted by Admin

Posted: Fri Jan 15, 2016 8:39 pm
by academyindia4
<< Content deleted By Admin >>

Topic deleted by Admin

Posted: Sat Jan 30, 2016 10:37 pm
by academyindia4
<< Content deleted By Admin >>

Topic deleted by Admin

Posted: Mon Feb 01, 2016 1:40 am
by academyindia4
<< Content deleted By Admin >>

Topic deleted by Admin

Posted: Mon Feb 01, 2016 10:23 pm
by academyindia4
<< Content deleted By Admin >>