IEBGENER USAGE



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

IEBGENER USAGE

Postby mainframes_6002 » Mon Dec 05, 2011 11:10 am

i am trying to create two records in a new pds 'TEST' and inside the member 'M1' using IEBGENER

000001 //MATRB74 JOB (ACCTINFO),'COMMENT',NOTIFY=&SYSUID,
000002 // CLASS=C,MSGCLASS=H,MSGLEVEL=(1,1)
000003 //STEP1 EXEC PGM=IEBGENER
000004 //SYSPRINT DD SYSOUT=*
000005 //SYSUT1 DD *
000006 FIRST RECORD
000007 SECOND RECORD
000008 //SYSUT2 DD DSN=MATRB743.COBOL.TEST(M1),DISP=(NEW,CATLG,CATLG),
000009 // SPACE=(TRK,(3,2,1),RLSE),
000010 // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),
000011 // UNIT=SYSDA
000012 //*SYSIN DD *
000013 //*

COBRUN:
IEBGENER Utility Version 4.21 Release R9

SYSUT1 and SYSUT2 must be supplied

IEBGENER Return Code : 12

PLZ SUGGEST THE SOLUTION
mainframes_6002
 
Posts: 4
Joined: Fri Dec 02, 2011 10:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: IEBGENER USAGE

Postby dick scherrer » Mon Dec 05, 2011 11:32 am

Hello,

What happened when you ran this?

Why is the SYSIN DD * commented out - SYSIN DD DUMMY works for what you want.

Suggest you pre-allocate the PDS and then add the member separately. Your JCL does not define a PDS, but rather a qsam data set. Remember - a PS contains directlry blocks.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: IEBGENER USAGE

Postby mainframes_6002 » Mon Dec 05, 2011 11:40 am

000001 //MATRB74 JOB (ACCTINFO),'COMMENT',NOTIFY=&SYSUID,
000002 // CLASS=C,MSGCLASS=H,MSGLEVEL=(1,1)
000003 //STEP1 EXEC PGM=IEBGENER
000004 //SYSPRINT DD SYSOUT=*
000005 //SYSUT1 DD *
000006 FIRST RECORD
000007 SECOND RECORD
000008 //STEP2 EXE PGM=IEFBR14
000009 //SYSUT2 DD DSN=MATRB743.COBOL.TEST(M1),DISP=(NEW,CATLG,CATLG),
000010 // SPACE=(TRK,(3,2,1),RLSE),
000011 // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),
000012 // UNIT=SYSDA
000013 //SYSIN DD DUMMY

*cobrun******************************** Top of D
IEBGENER Utility Version 4.21 Release R9

SYSUT1 and SYSUT2 must be supplied

IEBGENER Return Code : 12
mainframes_6002
 
Posts: 4
Joined: Fri Dec 02, 2011 10:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: IEBGENER USAGE

Postby expat » Mon Dec 05, 2011 3:34 pm

The first JCL posted does not match the second JCL posted.

Suggest you post OUTPUT in addition to input.

Also learn very quickly to use the code tags available on this forum.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: IEBGENER USAGE

Postby Akatsukami » Mon Dec 05, 2011 3:52 pm

mainframes_6002 wrote:
000001 //MATRB74   JOB (ACCTINFO),'COMMENT',NOTIFY=&SYSUID,
000002 //              CLASS=C,MSGCLASS=H,MSGLEVEL=(1,1)
000003 //STEP1      EXEC PGM=IEBGENER
000004 //SYSPRINT   DD SYSOUT=*
000005 //SYSUT1     DD *
000006 FIRST RECORD
000007 SECOND RECORD
000008 //STEP2      EXE PGM=IEFBR14
000009 //SYSUT2     DD DSN=MATRB743.COBOL.TEST(M1),DISP=(NEW,CATLG,CATLG),
000010 //             SPACE=(TRK,(3,2,1),RLSE),
000011 //             DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),
000012 //             UNIT=SYSDA
000013 //SYSIN     DD DUMMY


*cobrun******************************** Top of D
IEBGENER Utility Version 4.21 Release R9

SYSUT1 and SYSUT2 must be supplied

IEBGENER Return Code : 12

Either you re-typed (incorrectly) your JCL instead of copy-and-pasting it, or card 8 is bogus and your alleged output bears no relation to it. Either way, stop providing snippets of misinformation in the wrong format.
"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: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: IEBGENER USAGE

Postby dick scherrer » Mon Dec 05, 2011 11:09 pm

Even with help given here TS decided to post in at least one other forum.

This topic is now being locked.

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post