View previous topic :: View next topic
|
Author |
Message |
prangya Currently Banned New User
Joined: 12 Jul 2008 Posts: 7 Location: pune
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
prangya Currently Banned New User
Joined: 12 Jul 2008 Posts: 7 Location: pune
|
|
|
|
Hi,
I just want to insert a blank record in 4 th row(Means append).
Thanks
Chinmay |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
prangya Currently Banned New User
Joined: 12 Jul 2008 Posts: 7 Location: pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|