Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file

Google
 
Web mainframegurukul.com

Search Batch file-aid help

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> FILE-AID
  View previous topic :: View next topic  
Author Message
frenchman
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Feb 27, 2006 1:40 pm    Post subject: Search Batch file-aid help Reply with quote

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 !
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

Kalicharan
Moderator


Joined: 08 Feb 2006
Posts: 31

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Feb 27, 2006 6:25 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Kalicharan
Moderator


Joined: 08 Feb 2006
Posts: 31

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Feb 28, 2006 6:32 pm    Post subject: Mass Update irrespective of Position -- FileAID Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
arrbee
Active Member


Joined: 24 Feb 2006
Posts: 144

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Mar 09, 2006 7:45 pm    Post subject: Reply with quote

Karlicharan,

That is good piece of information and very useful.

Thanks.
_________________
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Guest






Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Mar 28, 2006 12:22 am    Post subject: Reply with quote

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
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
arrbee
Active Member


Joined: 24 Feb 2006
Posts: 144

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Mar 28, 2006 4:22 pm    Post subject: Reply with quote

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.
_________________
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Guest






Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Mar 28, 2006 5:30 pm    Post subject: Reply with quote

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 Question
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
srinivas dasari
Member


Joined: 02 Oct 2010
Posts: 1

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sat Oct 02, 2010 7:54 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1625
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Oct 04, 2010 1:13 pm    Post subject: Reply with quote

Check if this helps:

File-Aid is a versatile utility that is basically used for re-formatting data while copying from another data set. Apart from several usage of this utility like copy data sets, concatenate datasets etc., FILEAID can also be used to check whether a file is empty or not.

And you should start a new thread for a new question.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1625
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Oct 04, 2010 1:15 pm    Post subject: Reply with quote

Also, do not post your personal e-mail IDs.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
anu alexander
Member


Joined: 05 Jul 2013
Posts: 6

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jul 10, 2013 4:03 pm    Post subject: Reply with quote

in file-aid u can have the option f36 or pf36 infront of the pds will update members massively(mass update)
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Jan 15, 2016 8:39 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sat Jan 30, 2016 10:37 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Feb 01, 2016 1:40 am    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Feb 01, 2016 10:23 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> FILE-AID All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-41.html