IEBGENER-splitting a sequential file into PDS members



IEBGENER-splitting a sequential file into PDS members

Postby nipan » Wed Feb 01, 2012 12:03 pm

hi i have a record like below
000001 member branch
000002 pavan csit
000003 murali csit
000004 thiru ece
000005 ravi ece
000006 kiran mech
000007 anil mech

now i have to split these records into 3 members of PDS based on their branch, i have to use IEBGENER only.

i tried like this
000100 //AB808yyZ JOB (xxxx),PAVAN,CLASS=E,MSGCLASS=Z,NOTIFY=AB808yy
000200 //STEP1 EXEC PGM=IEBGENER
000300 //SYSPRINT DD SYSOUT=A
000400 //SYSUT1 DD DSNAME=USER.SHARE.PAVAN.TEST.UTI.A,
000500 // DISP=SHR
000600 //SYSUT2 DD DSNAME=USER.SHARE.PAVAN.TEST.UTI.B,DISP=(MOD,KEEP)
000700 //* DISP=(,KEEP),SPACE=(TRK,(10,5,5)),
000800 //* DCB=(RECFM=FB,LRECL=80,BLKSIZE=2000)
000900 //SYSIN DD *
001000 GENERATE MAXNAME=3,MAXGPS=2
001100 MEMBER NAME=CSIT
001200 GROUP1 RECORD IDENT=(6,'MURALI',1)
001300 MEMBER NAME=ECE
001400 GROUP2 RECORD IDENT=(4,'RAVI',1)
001500 MEMBER NAME=MECH
001600 /*

but i am getting output only one member as csit having all records,

please help me with this
nipan
 
Posts: 3
Joined: Wed Dec 21, 2011 5:30 pm
Has thanked: 0 time
Been thanked: 0 time

Re: IEBGENER-splitting a sequential file into PDS members

Postby NicC » Wed Feb 01, 2012 12:40 pm

What has this to do with the forum FAQ?
Have you read the manual for IEBGENER and looked at the examples?
Do you understand that if no label is assigned to a statement then column 1 must be blank? All your control cards appear to start in column 1.
Why do you HAVE to use IEBGENER? Classroom exercise?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: IEBGENER-splitting a sequential file into PDS members

Postby nipan » Wed Feb 01, 2012 1:36 pm

yes my trainer asked me to do so, i will go through the manual and docs. sry for the inconvenience
nipan
 
Posts: 3
Joined: Wed Dec 21, 2011 5:30 pm
Has thanked: 0 time
Been thanked: 0 time

Re: IEBGENER-splitting a sequential file into PDS members

Postby enrico-sorichetti » Wed Feb 01, 2012 2:02 pm

are You sure that You run the jcl as posted ??

this job gave the correct results


 000001 //IEB     EXEC PGM=IEBGENER                                             
 000002 //SYSUT1    DD *                                                       
 000003 MEMBER BRANCH                                                           
 000004 PAVAN CSIT                                                             
 000005 MURALI CSIT                                                             
 000006 THIRU ECE                                                               
 000007 RAVI EXE                                                               
 000008 KIRAN MECH                                                             
 000009 AMIL MECH                                                               
 000010 //SYSUT2    DD DISP=(,CATLG),DSN=ENRICO.TEST.PDS1,                     
 000011 //             UNIT=SYSDA,SPACE=(CYL,(1,1,1)),                         
 000012 //             DCB=(RECFM=FB,LRECL=80)                                 
 000013 //SYSIN     DD *                                                       
 000014          GENERATE MAXNAME=9,MAXGPS=9                                   
 000015          MEMBER NAME=CSIT                                               
 000016 GR1      RECORD IDENT=(6,'MURALI',1)                                   
 000017          MEMBER NAME=ECE                                               
 000018 GR2      RECORD IDENT=(4,'RAVI',1)                                     
 000019          MEMBER NAME=MECH                                               
 000020 //SYSPRINT  DD SYSOUT=*                                     
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: IEBGENER-splitting a sequential file into PDS members

Postby nipan » Wed Feb 01, 2012 2:17 pm

Sorry for the inconvenience, job ran successfully. The records were present in small letters but in jcl i gave in capitals, this was the problem, finally cleared. Once again Sorry for the inconvenience.
nipan
 
Posts: 3
Joined: Wed Dec 21, 2011 5:30 pm
Has thanked: 0 time
Been thanked: 0 time


Return to FAQ

 


  • Related topics
    Replies
    Views
    Last post