MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IDCAMS FB to VB ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
KM
Beginner


Joined: 22 Jul 2004
Posts: 18
Topics: 8

PostPosted: Tue Nov 22, 2005 12:02 pm    Post subject: IDCAMS FB to VB ? Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Nov 22, 2005 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
KM
Beginner


Joined: 22 Jul 2004
Posts: 18
Topics: 8

PostPosted: Tue Nov 22, 2005 12:52 pm    Post subject: Reply with quote

Ah, well of course:

** RECORD X'E8C1E3F1F1' NOT WRITTEN. LENGTH INVALID
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Nov 22, 2005 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
KM
Beginner


Joined: 22 Jul 2004
Posts: 18
Topics: 8

PostPosted: Tue Nov 22, 2005 1:22 pm    Post subject: Reply with quote

That I did not know. Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group