|
|
| Author |
Message |
srramesh Currently Banned New User
Joined: 11 Jul 2008 Posts: 10 Location: Chennai
|
|
|
|
Hi i have created a jcl in the following format
deleting a file...(file01)
create a file...(file01)
populate some values in it.
my question is while submitting the job first time the file does not exist to delete..So it shows error.what i have to do.? |
|
| Back to top |
|
 |
References
|
|
 |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 709 Location: Chennai, India
|
|
|
|
Ramesh,
Use the "Code" option provided here instead of attaching screenshots.
| Quote: |
| So it shows error.what i have to do.? |
What error it is showing?
Thanks,
Arun |
|
| Back to top |
|
 |
Agni
Active User
Joined: 22 Nov 2007 Posts: 75 Location: Edinburgh
|
|
|
|
Ramesh,
Please post the error that you are getting.
I suppose there won't be any error because DISP option MOD would create the dataset if it is not existing and in this case it would be deleted even the job abends or does not abend for some reason.
Cheers
Agni |
|
| Back to top |
|
 |
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 277
|
|
|
|
| You are using two steps with the same name step1 change it and check . Otherwise mod,del,del shouldn't throw any error even if there is no dataset to delete |
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2142 Location: Phoenix, AZ
|
|
|
|
Hi,
| Prasanthhere wrote: |
| You are using two steps with the same name step1 change it and check . |
This won't create any problem, yup but in SYSOUT, if JOB gets abended, it would be tough to find which 'step1' is which step ?
Well, something else is there which is still not clear..JOBs are working for me at my shop,TS need to post the error message as asked earlier. |
|
| Back to top |
|
 |
srramesh Currently Banned New User
Joined: 11 Jul 2008 Posts: 10 Location: Chennai
|
|
|
|
| here i have attached the code n respective error msg |
|
| Back to top |
|
 |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 167 Location: Chennai
|
|
|
|
Hi,
Did u tried with changing the step name.
Regards
R KARTHIK |
|
| Back to top |
|
 |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 709 Location: Chennai, India
|
|
|
|
Ramesh,
As the error message says, provide the SPACE parameter in the first step.
Thanks,
Arun |
|
| Back to top |
|
 |
srramesh Currently Banned New User
Joined: 11 Jul 2008 Posts: 10 Location: Chennai
|
|
|
|
@karthik
yes.. i tried |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 649
|
|
|
|
Hi,
if the file does not exist, just code the space and unit parameter.
SPACE=(TRK,(0))
Gerry |
|
| Back to top |
|
 |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 167 Location: Chennai
|
|
|
|
Hi,
U have to give space parameter.
see the belo example
| Code: |
//PSTP0010 EXEC PGM=IEFBR14
//E2S1SRT DD DSN=&PFXEGL..DSEME2S1.EUSDGRP.SRT,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(CYL,(1,1)),
// UNIT=SYSDA
|
|
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3507 Location: Brussels once more ...
|
|
|
|
| I must admit that I prefer IDCAMS for pre process deletes because it will delete a migrated file without recall. |
|
| Back to top |
|
 |
Gousiya Mulla
New User
Joined: 02 Jun 2008 Posts: 27 Location: bangalore
|
|
|
|
| Quote: |
| here i have attached the code n respective error msg |
Hi ,
I have tried the same code what you mentioned , It perfectly ran for me . Please find the below code and output message .
//STEPDEL1 EXEC PGM=IEFBR14
//FILE1 DD DSN=TFPZ.TEST5.FILE
//STEPDEL1 EXEC PGM=IEFBR14
//OUTFILE DD DSN=TFPZ.TEST5.FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(5,3),RLSE),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//*
Ouput Message :(In Brief)
STEPDEL1 - STEP WAS EXECUTED - COND CODE 0000
TFPZ.TEST5.FILE DELETED, DDNAME=FILE1
SMS ALLOCATED TO DDNAME (OUTFILE )
DSN (TFPZ.TEST5.FILE
STEPDEL1 - STEP WAS EXECUTED - COND CODE 0000
TFPZ.TEST5.FILE RETAINED DDNAME=OUTFILE
Check it out . |
|
| Back to top |
|
 |
teevijay
New User
Joined: 20 Mar 2006 Posts: 22
|
|
|
|
| Interesting !The code worked perfectly for me. |
|
| Back to top |
|
 |
teevijay
New User
Joined: 20 Mar 2006 Posts: 22
|
|
|
|
Chek it out !! hope it gives some insight !
IGD17045I SPACE NOT SPECIFIED FOR ALLOCATION OF DATA SET dsname
Explanation: No space was specified on the JCL or in the data class for
the allocation of the data set.
In the message text:
dsname The data set name.
System Action: The allocation fails.
Application Programmer Response: Correct the space specification in
either the JCL DEFINE statement or in the data class. Then resubmit the
allocation request. |
|
| Back to top |
|
 |
|
|