IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Question using FILEAID


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prangya
Currently Banned

New User


Joined: 12 Jul 2008
Posts: 7
Location: pune

PostPosted: Tue Aug 05, 2008 10:53 am
Reply with quote

I have one Querry regarding FILEAID JCL it is as follows:

Using Fileaid I need to insert record into file which is as follows:

fv1111@xxx.com
sa2222@xxx.com
nh3333@xxx.com

As here we have 3 records I need to insert fourth one.

So will you give controlcard to write 4 record into file.

Thank you,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 05, 2008 12:03 pm
Reply with quote

prangya

DO NOT
start a new thread in an existing one.

Quote:
So will you give controlcard to write 4 record into file.

So what errors are you getting - please post your code and the error messages received.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 05, 2008 1:57 pm
Reply with quote

Hi,
prangya wrote:
As here we have 3 records I need to insert fourth one.

So will you give controlcard to write 4 record into file.
If I've the same question for you, can you start with this much of information..?

Some things before answering I would like to know-

1. Where do you want to insert the record - in middile, somewhere else..or just want to append..?
2. Do you want to check some keys before "adding" the record ?
3. How does fourth record look like?

PS: Many times I think, when one knows in his perception how to define my problem in a well constructed way in front of someone, He is actually half done already..
Back to top
View user's profile Send private message
prangya
Currently Banned

New User


Joined: 12 Jul 2008
Posts: 7
Location: pune

PostPosted: Tue Aug 05, 2008 9:54 pm
Reply with quote

Hi,
I just want to insert a blank record in 4 th row(Means append).

Thanks
Chinmay
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 05, 2008 11:11 pm
Reply with quote

Hello,

Is there some reason you cannot simply copy the "new" record after the existing records? You do not need a "control card". This is how disp MOD can be used.

Before appending the new record, i would make sure i had a copy of the original file before writing into the existing file.
Back to top
View user's profile Send private message
prangya
Currently Banned

New User


Joined: 12 Jul 2008
Posts: 7
Location: pune

PostPosted: Wed Aug 06, 2008 12:11 pm
Reply with quote

Iam using Fileaid JCL to replace Characters in Control Card that is as follows:


//STEP01 EXEC PGM=FILEAID
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DD01 DD DISP=SHR,DSN=aaaaaa.ssssss.BACKUP.CNTLCARD(fffffff)
//DD01O DD DISP=SHR,DSN=aaaaa.sssss.BACKUP.CNTLCARD(ffffff)
//SYSIN DD *
$$DD01 COPY OUT=0,
EDITALL=(1,0,C'fv1111',C'kn1111'),
EDITALL=(1,0,C'sa2222',C'cj2222),
EDITALL=(1,0,C'nh1111@bbb.com',C'ccccc@bbbCOM'),
EDITALL=(1,0,C' ',C'xx-yy-zz@aaaa.com')
/*
My controlcard FFFFF looks like this

fv1111@xxx.com
sa2222@xxx.com
nh3333@xxx.com

So Controlcard contains three rows I am trying to insert fourth row using above fileaid jcl. I need step that will insert 4 row in control card in above JCL.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 06, 2008 12:20 pm
Reply with quote

Hello,

You cannot edit what does not exist which is what your current process is trying to do.

You need to either copy a "dummy" record at the end before you start the fileaid step so your edit could work or you need to copy the 4th record after the fileaid step completes.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
Search our Forums:

Back to Top