IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Data being truncated while copying from OMVS to MVS


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Guru Nandu

New User


Joined: 16 Jul 2009
Posts: 6
Location: India

PostPosted: Mon Feb 08, 2010 10:43 am
Reply with quote

Hi,

In Mainframe OMVS, a unix script generates xxx.xml where the record length is 80 characters.

ISC.ISC06.XXX.TEST.DDMMYY is also defined with 18000 characters long. While using the below step, i am getting
READY
OCOPY INDD(INOUT) OUTDD(TEMP) TEXT CONVERT((BPXFX311)) TO1047
THE RECORD SIZE IN THE OUTPUT DATA SET IS SMALLER THAN A LINE IN THE INPUT FILE.
READY
END

//CPDBRM EXEC PGM=IKJEFT01,REGION=0M
//INOUT DD PATHOPTS=(ORDONLY),
// PATH='/u/isc/xxx.xml'
//TEMP DD DSN=ISC.ISC06.XXX.TEST.DDMMYY,
// RECFM=VB,
// LRECL=18000,
// DSORG=PS,
// SPACE=(CYL,(2,1),RLSE),
// DISP=(OLD,CATLG,CATLG),
// UNIT=SYSDA
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(INOUT) OUTDD(TEMP) TEXT CONVERT((BPXFX311)) TO1047
/*
//*

Is there any option to wrap the text while copying into sequential dataset?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Feb 08, 2010 5:44 pm
Reply with quote

I have seen cases where line breaks were not embedded in the Unix System Services file, so from the MVS standpoint the file is one long record. If this is the case, you may need to process it in Unix System Services to add a line break after every 80 bytes.
Back to top
View user's profile Send private message
Guru Nandu

New User


Joined: 16 Jul 2009
Posts: 6
Location: India

PostPosted: Thu Feb 11, 2010 3:46 pm
Reply with quote

When the file size is large, this helps in copying the file completely. By using OGET instead OCOPY has solved my problem.
Code:

//JS030    EXEC  PGM=IKJEFT01,                               
//             REGION=0M                                     
//SYSTSPRT DD  SYSOUT=*                                     
// PATH='/u/isc/xxx.xml'
//TEMP     DD  DSN=ISC.ISC06.XXX.TEST.DDMMYY               
//             RECFM=VB,                                     
//             LRECL=32756,                                 
//             DSORG=PS,                                     
//             SPACE=(CYL,(2,1),RLSE),                       
//             DISP=(NEW,CATLG,DELETE),                     
//             UNIT=SYSDA                                   
//SYSTSIN  DD  *                                             
  OGET '/u/isc/xxx.xml' 'ISC.ISC06.XXX.TEST.DDMMYY' BINARY
/*
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top