View previous topic :: View next topic
|
Author |
Message |
sudhakar_lendave
New User
Joined: 21 Nov 2006 Posts: 48 Location: mumbai
|
|
|
|
hi
i have to write a jcl which will create gdg bases in the following way:
1. in step1 i wrote sort program in which SORTIN datasets contains
gdg base names. In SYSIN DD * i wrote
//SYSIN DD *
SORT FIELDS=(1,16,CH,A)
RECORD TYPE=F,LENGTH=80
OUTREC FIELDS=(C' DEFINE GDG(NAME(',1,16,C') LIMIT(3) SCRATCH NOEMPTY)')
/*
2. in step2 i used dataset in SORTOUT of step1 as SYSIN DD * input.
This works fine if data in the SORTOUT is limited to 80 fields.
But when the length of data in the SORTIN (gdg base names) is incresed then step2 will not execute the commnds.
how can i tackle with this problem? |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Could you please explain me, why you are using sort.
Creating GDG you should normaly use IDCAMS.
Sorry, I don't understand your problem.
Regards, UmeySan |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
HI sudhakar_lendave,
In that case u have to increase the length of o/p file to occupy gdg base name more that 80 bytes.
UmeySan: he want to create jcl for creating GDG base.He will create the jcl using sort |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
It appears you're trying to use DFSORT to create IDCAMS control statements like this:
Code: |
DEFINE GDG(NAME(dsname) LIMIT(3) SCRATCH NOEMPTY)
|
DFSORT has no problem creating such control statements beyond 80 characters, but IDCAMS probably can't read a control statement that long. So you'd need to create continued control statements that IDCAMS can read like this:
Code: |
DEFINE GDG(NAME(dsname) -
LIMIT(3) SCRATCH NOEMPTY)
|
You can use these DFSORT control statements to do that:
Code: |
SORT FIELDS=(1,44,CH,A)
OUTREC FIELDS=(C' DEFINE GDG(NAME(',1,44,C') -',/,
C' LIMIT(3) SCRATCH NOEMPTY)')
|
|
|
Back to top |
|
|
sudhakar_lendave
New User
Joined: 21 Nov 2006 Posts: 48 Location: mumbai
|
|
|
|
hi frank,
it is giving following problem to your solution,
Code: |
SYSIN :
SORT FIELDS=(1,44,CH,A)
OUTREC FIELDS=(C' DEFINE GDG(NAME(',1,44,C') -',/,
*
C' LIMIT(3) SCRATCH NOEMPTY)')
WER268A OUTREC STATEMENT : SYNTAX ERROR |
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
My mistake. I should have shown an OUTFIL statement rather than an OUTREC statement since only OUTFIL can use /.
Code: |
OUTFIL BUILD=(C' DEFINE GDG(NAME(',1,44,C') -',/,
C' LIMIT(3) SCRATCH NOEMPTY)')
|
However, the WER messages indicate you're using Syncsort, not DFSORT. I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on Syncsort. |
|
Back to top |
|
|
|