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

blankline between 2 records after copying from UNIX to mainf


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

New User


Joined: 02 Apr 2008
Posts: 5
Location: pune

PostPosted: Tue May 03, 2011 6:07 pm
Reply with quote

Hi All,
I am exicuting a script to pull the UNIX to Mainframe GDG file.
I am getting a blank line after each record.
What could be the issue while copying the Unix file to Mainframe.

Thanks
Husen
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 03, 2011 6:10 pm
Reply with quote

What does the script do?
Does this process handle the ASCII to EBCDIC conversion issues?
If so, how does it manage the definition of end-of-line (EOL) and end-of-file (EOF) between the two systems?
Back to top
View user's profile Send private message
esmayeel_s

New User


Joined: 02 Apr 2008
Posts: 5
Location: pune

PostPosted: Tue May 03, 2011 6:14 pm
Reply with quote

Hi Kevin,

The script converts the ASCII to EBCDIC and then copies the UNIX file to Mainframe GDG.

This script is working for one of the interface in production and it does not handle the EOL and EOF, but for the new interface it is giving the issue.

Please suggest.

Thanks
Husen.
Back to top
View user's profile Send private message
esmayeel_s

New User


Joined: 02 Apr 2008
Posts: 5
Location: pune

PostPosted: Tue May 03, 2011 6:57 pm
Reply with quote

Hi Kevin,

i am using the below command to convert ASCII to EBCDIC codeset.

iconv -t IBM-1047 -f ISO8859-1 FILE1 > file2

Please suggest.

Thanks
Husen
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue May 03, 2011 7:11 pm
Reply with quote

Quote:
but for the new interface it is giving the issue.
So the obvious thing to do is look at what is different, right? Why are you not doing this yourself? Since we don't have access to your site, nor the script(s), nor the source data, nor the output file -- just how much can we help without detailed data?
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Identify and write records containing... SYNCSORT 11
No new posts Filter records where condition is in ... SYNCSORT 6
Search our Forums:


Back to Top