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: 7990
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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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