Rg facing an Error in IEBGENER



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Rg facing an Error in IEBGENER

Postby kandrepavan » Thu Aug 23, 2012 11:14 am

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
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: Rg facing an Error in IEBGENER

 

Re: Rg facing an Error in IEBGENER

Postby Akatsukami » Thu Aug 23, 2012 3:11 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Rg facing an Error in IEBGENER

Postby halfteck » Thu Aug 23, 2012 3:17 pm

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.
halfteck
 
Posts: 42
Joined: Tue Nov 08, 2011 8:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rg facing an Error in IEBGENER

Postby kandrepavan » Fri Aug 24, 2012 11:03 am

Hi Akatsukami,

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

Thanx
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post