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

EDCICONV - Newline are missing


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

New User


Joined: 20 Sep 2005
Posts: 17

PostPosted: Mon Jul 19, 2021 12:42 am
Reply with quote

Hi,

I am converting as below.

//ICONV EXEC PGM=EDCICONV,
// PARM=('FROMCODE(IBM1388),TOCODE(IBM1381)')

The output data set supposed to be ASCII. All character seems to be good. The newline is missing. So in ASCII system the file becomes one single large record.

Any idea ?
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1231
Location: Bamberg, Germany

PostPosted: Mon Jul 19, 2021 9:17 am
Reply with quote

In z/OS there is no CRLF or LF, hence additional data during conversion is not added.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1231
Location: Bamberg, Germany

PostPosted: Mon Jul 19, 2021 10:50 am
Reply with quote

See also https://ibmmainframes.com/about67908.html
Back to top
View user's profile Send private message
dwijadas

New User


Joined: 20 Sep 2005
Posts: 17

PostPosted: Mon Jul 19, 2021 10:23 pm
Reply with quote

Hi,

Thanks for your reply. In my shop, we cant use REXX. I managed to achieve this by putting X'15' as the end of line for each record using SORT OVERLAY.

Post that file was passed to EDCICONV for codepage conversion.
Tool converted this X'15' to X'0A' - ASCII LF and works just fine after I downloaded it to PC.

Thank you once again for your reply.
Back to top
View user's profile Send private message
hankoerlemans

New User


Joined: 25 Jan 2018
Posts: 57
Location: Australia

PostPosted: Wed Jul 21, 2021 4:22 am
Reply with quote

Just cause I'm curious why would Rexx be excluded as a consideration ?
Back to top
View user's profile Send private message
dwijadas

New User


Joined: 20 Sep 2005
Posts: 17

PostPosted: Wed Jul 21, 2021 2:03 pm
Reply with quote

Just because some people think REXX is inefficient and complex.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2012
Location: USA

PostPosted: Wed Jul 21, 2021 6:12 pm
Reply with quote

hankoerlemans wrote:
Just cause I'm curious why would Rexx be excluded as a consideration ?

Using REXX only to append a single constant byte to each record would be the same as using a microscope to hammer nails. icon_biggrin.gif
Of course, using REXX might be very useful to impress the managers who have no idea what’s happening. 36_16_4.gif
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 Find missing sequence for every key DFSORT/ICETOOL 3
No new posts commands missing in JESMSGLG JCL & VSAM 3
This topic is locked: you cannot edit posts or make replies. Missing Negative sign in COBOL COBOL Programming 6
No new posts Am I missing something on "FREE ... CLIST & REXX 10
No new posts Missing SECTION break DFSORT/ICETOOL 9
Search our Forums:

Back to Top