Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Question using FILEAID

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 05, 2008 12:03 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Aug 05, 2008 1:57 pm    Post subject:
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    Post subject: Reply to: Question using FILEAID
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

Site Director


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

PostPosted: Tue Aug 05, 2008 11:11 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Aug 06, 2008 12:20 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us