Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error in JCL associated with IEBGENER

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Error in JCL associated with IEBGENER
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    Post subject:
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    Post subject: Reply to: Error in JCL associated with IEBGENER
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    Post subject: Reply to: Error in JCL associated with IEBGENER
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    Post subject: Reply to: Error in JCL associated with IEBGENER
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    Post subject:
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    Post subject: Reply to: Error in JCL associated with IEBGENER
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us