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: 7931
Location: Bellevue, IA

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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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