View previous topic :: View next topic |
Author |
Message |
KM Beginner
Joined: 22 Jul 2004 Posts: 18 Topics: 8
|
Posted: Tue Nov 22, 2005 12:02 pm Post subject: IDCAMS FB to VB ? |
|
|
Hi,
Would like to use IDCAMS to copy a FB dataset to a VB dataset, but somethings off:
Code: |
//COPY EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INFILE DD DSN=dataset 1
//OUTFILE DD DSN=dataset2,
// DISP=(NEW,CATLG,CATLG),
// DCB=(RECFM=VB,LRECL=250,BLKSIZE=0,DSORG=PS),
// SPACE=(CYL,(25,25),RLSE),UNIT=SYSDA
//SYSIN DD *
REPRO INFILE(INFILE) OUTFILE(OUTFILE)
|
What am I missing ? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Nov 22, 2005 12:27 pm Post subject: |
|
|
Quote: |
What am I missing ?
|
KM,
You are missing Sysprint error messages without which we cannot help you.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
KM Beginner
Joined: 22 Jul 2004 Posts: 18 Topics: 8
|
Posted: Tue Nov 22, 2005 12:52 pm Post subject: |
|
|
Ah, well of course:
** RECORD X'E8C1E3F1F1' NOT WRITTEN. LENGTH INVALID |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Nov 22, 2005 1:05 pm Post subject: |
|
|
KM,
The next time you try to seek help , make sure that you post the complete error messages. If you would have posted
Code: |
IDC3309I ** RECORD X'C1C2C34040' NOT WRITTEN. LENGTH INVALID
|
it would have been solved in the first post it self.
You forgot that VB files have an additional 4 bytes of RDW. So change your LRECL on the OUTFILE to 254.
Check this link for a detailed explanation of the error
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2M650/SPTM009222
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
KM Beginner
Joined: 22 Jul 2004 Posts: 18 Topics: 8
|
Posted: Tue Nov 22, 2005 1:22 pm Post subject: |
|
|
That I did not know. Thanks for your help. |
|
Back to top |
|
 |
|
|