Page 1 of 1

Rg facing an Error in IEBGENER

PostPosted: Thu Aug 23, 2012 11:14 am
by kandrepavan
Hi all ,

This the code , i have one input ps file it has 10 Records i want to split this into two members of one pds . iam facing an error invlaid parameter
//STEP02  EXEC PGM=IEBGENER                                     
//SYSUT1    DD DSN=TXXXXXX.JCL.UTIL.PS1,DISP=SHR                 
//SYSUT2    DD DSN=TXXXXXX.JCL.UTIL.PDS2,DISP=SHR               
//SYSIN     DD *                                                 
    GENERATE MAXNAME=2,MAXGPS=1                                 
    MEMBER NAME=MFD                                             
    RECORD IDENT=(9,'MAINFRAME',6)                               
    MEMBER NAME=MFT                                             
/*                                                               
//SYSPRINT  DD SYSOUT=*                                         
//SYSOUT    DD SYSOUT=*                                         
//                                                 

Error in Spool:
DATA SET UTILITY - GENERATE               
    GENERATE MAXNAME=2,MAXGPS=1           
    MEMBER NAME=MFD                       
    RECORD IDENT=(9,'MAINFRAME',6)         
IEB338I     INVALID PARAMETER IN COL. 19   
    MEMBER NAME=MFT

Re: Rg facing an Error in IEBGENER

PostPosted: Thu Aug 23, 2012 3:11 pm
by Akatsukami
As the fine manual states:
length
specifies the length (in bytes) of the identifying name. The length of your identifier cannot be greater than eight.

Re: Rg facing an Error in IEBGENER

PostPosted: Thu Aug 23, 2012 3:17 pm
by halfteck
This does seem somewhat like using a HUGE sledgehammer to crack a very small nut.
If you are using TSO/ISPF, read up on the copying facility within the editor, it is a simple process to use relative record numbering on the input to produce various outputs, that can be subsequently saved as required.

Re: Rg facing an Error in IEBGENER

PostPosted: Fri Aug 24, 2012 11:03 am
by kandrepavan
Hi Akatsukami,

After so many attempts at last i came to know by myself , what u said regarding length ..

Thanx