Page 1 of 1

Can I use Include Member in sortin of ICEMAN

PostPosted: Wed Nov 17, 2010 10:08 pm
by MFSlearner
Hi,
One of my requirement is to copy all the datasets present in another dataset to a single PS dataset. I tried below JCL,,but it's failing. I checked 'DFSORT: Getting Started' , I don't see 'Include member' option. I JCL i was using was below:

//MYLIB JCLLIB ORDER=&SYSUID..IN.DATASET
//STEP0010 EXEC PGM=ICEMAN,COND=(1,LT)
//SYSOUT DD SYSOUT=*
//SORTIN DD DUMMY
// INCLUDE MEMBER=CONCATDD
//SORTOUT DD DSN=&SYSUID.TEST.DATASET1,
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(2,1)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000)
//SYSIN DD *
SORT FIELDS=COPY
/*
//*

&sysuid.IN.DATASET(CONCATDD) :
// DD DSN=USERID.TEST.user1,DISP=SHR
// DD DSN=USERID.TEST.user2,DISP=SHR

Error message:
ICE043A 3 INVALID DATA SET ATTRIBUTES: SORTIN RECFM - REASON CODE IS 10

RecFM of both inputs & outputs were matching.. But not sure,,why above error is coming. Usage of Inlcude member is correct in ICEMAN? Appreciate the help.

Re: Can I use Include Member in sortin of ICEMAN

PostPosted: Wed Nov 17, 2010 11:11 pm
by steve-myers
The DCB attributes are taken from the //SORTIN DD DUMMY statement, which are missing, not from the first DD statement in IN.DATASET(CONCATDD).

Re: Can I use Include Member in sortin of ICEMAN

PostPosted: Wed Nov 17, 2010 11:26 pm
by MFSlearner
that sounds correct reason, thanks.