IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error in JCL associated with IEBGENER


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Wed Oct 24, 2007 10:59 am
Reply with quote

Hi all,
I am trying to split the records present in a sequential file to a 3 membered PDS using IEBGENER.I am attaching the JCL and the input file associated with the JCL.I am getting the return code of 12 when i am submitting the JCL specified.Kindlyhelp me out to solve this error.The required info is attached with the post.


regards
Akshatha
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Wed Oct 24, 2007 12:07 pm
Reply with quote

akshathan,

Please use the below SYSIN control cards.
Code:
 GENERATE MAXNAME=3,MAXGPS=2
 MEMBER NAME=COMP           
 RECORD IDENT=(2,'CS',1)   
 MEMBER NAME=INFO           
 RECORD IDENT=(2,'IS',1)   
 MEMBER NAME=INDU     

In your SYSIN control cards, there is a space wrongly given before and after '=' and MAXGPS is wrongly given as MAXGAPS.
Back to top
View user's profile Send private message
sankar_MF

New User


Joined: 19 Sep 2006
Posts: 29

PostPosted: Wed Oct 24, 2007 12:27 pm
Reply with quote

Yes,
There shouldn't be any spaces between equal sign and the values. MAXGPS should be corrected.
Back to top
View user's profile Send private message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Wed Oct 24, 2007 1:07 pm
Reply with quote

Hi Shankar,

I had initially tried in the same way as you have specified.But then also it was giving the error.Thats why i just provided a space.Still i am getting the same error.Kindly help me.


regards
Akshatha
Back to top
View user's profile Send private message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Wed Oct 24, 2007 1:56 pm
Reply with quote

Hi Shankar,
The previous error is resolved.Thanks a lot for the correction.
Now the problem is the splitting of the recods is not happening properly.
I have 3 members named
COMP
INFO
INDU

If the first 2 characters of the input file has CS then those recods should be a part of COMP member,if its IS then it should be in INFO and others it should be in INDU.But the record splitting is not as i want.Kindly correct me if the utility statments which i have written in the JCL for the same is wrong.
Back to top
View user's profile Send private message
sankar_MF

New User


Joined: 19 Sep 2006
Posts: 29

PostPosted: Wed Oct 24, 2007 2:15 pm
Reply with quote

Hi,
Use the following control cards, i think it will fulfil your requirements


GENERATE MAXNAME=3,MAXGPS=2

MEMBER NAME=COMP

GROUP1 RECORD IDENT=(2,'CS',1)

MEMBER NAME=INFO

GROUP2 RECORD IDENT=(2,'IS',1)

MEMBER NAME=INDU
Back to top
View user's profile Send private message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Wed Oct 24, 2007 2:47 pm
Reply with quote

Hi Sankar,
The control cards you have specified is same as what i have provided in the excel doc.If there is some difference please let me know,as i am not getting the required result using the above control cards.


regards
Akshatha
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Wed Oct 24, 2007 6:27 pm
Reply with quote

akshathan,

IDENT will search for the specified value and put the records up to the specified value found in the associated member.

In your case
value 'CS' will be find in the 1st record itself and it will be put it into member COMP,
value 'IS' will be find in the 6th record and records from 2nd to 6th records will be put into member INFO and
remaining records will be put into member INDU
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top