Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Data being truncated while copying from OMVS to MVS

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

New User


Joined: 16 Jul 2009
Posts: 5
Location: India

PostPosted: Mon Feb 08, 2010 10:43 am    Post subject: Data being truncated while copying from OMVS to MVS
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: 8125
Location: East Dubuque, Illinois, USA

PostPosted: Mon Feb 08, 2010 5:44 pm    Post subject:
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: 5
Location: India

PostPosted: Thu Feb 11, 2010 3:46 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 4 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us