Posted: Thu Jul 15, 2004 2:34 pm Post subject: Error Handling in IEBGENER
I am trying to concatenate two files using IEBGENER. I get a return code 012 when the files are empty. i checked the iebgener documentation in IBM website, they say sysin should contain an statement Exits ioerror=some routine name.
What kinda routine this should be ? Is it a JCL or something else ? Please provide me a sample code. I just want to go to next step if i encounter an IOERROR.
what should i do if i want to go to next step ignoring the error. ( I know I can use cond parameter but it is too complex ) .
can I have sysin with only exits ioerror= some routine name ? I dont have any use of Generate statement.
Any help will be appreciated.
Thanks,
Vivek _________________ Vivek,NJ
what should i do if i want to go to next step ignoring the error.
Nothing. A return code of 12 here is not going to prevent a subsequent step from executing, unless, of course, it does a check for this step's return code.
Kolusu,
I the first temp file &&fmf0802 is empty but second file &fmf0802 is not.
I read somewhere that in concatenation the files with longer lines should be at the top. i interchanged in sysut1 still abended.
the error code from the spool is
IEB351I I/O ERROR ,FMPD480 ,PSTEP11B,210D,D,SYSUT1 ,READ ,WRNG.LEN.RECORD,00000054000000,BSAM _________________ Vivek,NJ
Look carefully at the error message. It is pointing to PSTEP11B. Your IEBGENER step in the jcl you posted is PSTEP21. so the error messages are from a different step
Kolusu assume PSTEP11b as PSTEP21 , coz it was yesterday's output and i changed and put the step to the bottom of jcl. both are same. treat step name as same. _________________ Vivek,NJ
the situation is both files are FBA and second file has some data.
I assume problem could be with Block size. i increased the block size from 0 to 1300 but no use. i changed FBA to FB , still no use. _________________ Vivek,NJ
Nothing. A return code of 12 here is not going to prevent a subsequent step from executing, unless, of course, it does a check for this step's return code.
There is a return code check. _________________ Vivek,NJ
I used an IF condition to execute next steps for condition 12 and 0. but if we have to restart these steps, the subsequents steps are not run because of the IF condition. _________________ Vivek,NJ
,EDIT ,JUMSB4.FMF0802 ,Columns,00001,00072,
,Command ===>, ,Scroll ===>,CSR ,
,******,***************************** Top of Data ******************************
,******,**************************** Bottom of Data ****************************
Dataset is Empty,
EDIT ,JUMSB4.FMF0803 ,Columns,00001,00072,
Command ===>, ,Scroll ===>,CSR ,
******,***************************** Top of Data ******************************
==MSG>,-Warning- The UNDO command is not available until you change
==MSG>, your edit profile using the command RECOVERY ON.
000100,greek
******,**************************** Bottom of Data ****************************
<b>SYSPRINT I GOT IS </b>
<b>----------------------</b>
DATA SET UTILITY - GENERATE
IEB352I WARNING: ONE OR MORE OF THE OUTPUT DCB PARMS COPIED FROM INPUT
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Jul 16, 2004 8:11 am Post subject:
Vivek,
Post the DCB Parameters of both JUMSB4.FMF0802 & JUMSB4.FMF0803. Look in 3.4 listing by putting an S besides the datasets and let me know. If any one of them does not have a valid record length you will get that error.
Post the DCB Parameters of both JUMSB4.FMF0802 & JUMSB4.FMF0803. Look in 3.4 listing by putting an S besides the datasets and let me know. If any one of them does not have a valid record length you will get that error.
Kolusu I assume you are asking me to give u the dataset characterisitics.
Data Set Information
Command ===>
Data Set Name . . . : JUMSB4.FMF0802
General Data Current Allocation
Volume serial . . . : WORK34 Allocated cylinders : 10
Device type . . . . : 3390 Allocated extents . : 1
Organization . . . : NONE
Record format . . . : FBA
Record length . . . : 130
Block size . . . . : 130 Current Utilization
1st extent cylinders: 10 Used cylinders . . : 0
Secondary cylinders : 20 Used extents . . . : 0
Creation date . . . : 2004/07/16
Referenced date . . : 2004/07/16
Data Set Information
Command ===>
Data Set Name . . . : JUMSB4.FMF0803
General Data Current Allocation
Volume serial . . . : WORK34 Allocated cylinders : 10
Device type . . . . : 3390 Allocated extents . : 1
Organization . . . : PS
Record format . . . : FBA
Record length . . . : 130
Block size . . . . : 130 Current Utilization
1st extent cylinders: 10 Used cylinders . . : 1
Secondary cylinders : 20 Used extents . . . : 1
Creation date . . . : 2004/07/16
Referenced date . . : 2004/07/16
Expiration date . . : ***None*** _________________ Vivek,NJ
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