View previous topic :: View next topic
|
Author |
Message |
akshathan
New User
Joined: 18 Aug 2006 Posts: 45
|
|
|
|
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 |
|
|
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
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 |
|
|
sankar_MF
New User
Joined: 19 Sep 2006 Posts: 29
|
|
|
|
Yes,
There shouldn't be any spaces between equal sign and the values. MAXGPS should be corrected. |
|
Back to top |
|
|
akshathan
New User
Joined: 18 Aug 2006 Posts: 45
|
|
|
|
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 |
|
|
akshathan
New User
Joined: 18 Aug 2006 Posts: 45
|
|
|
|
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 |
|
|
sankar_MF
New User
Joined: 19 Sep 2006 Posts: 29
|
|
|
|
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 |
|
|
akshathan
New User
Joined: 18 Aug 2006 Posts: 45
|
|
|
|
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 |
|
|
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
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 |
|
|
|