View previous topic :: View next topic
|
Author |
Message |
salilnigam1970
New User
Joined: 26 Jan 2016 Posts: 5 Location: india
|
|
|
|
I have used ICE TOOL to convert EBCDIC file to ASCII file for file transfer from zOS to zOS UNIX Directory. Mainframe file has four lines. But when user views the ASCII file, all four lines are displayed in single. Could you please help me to know if we can transfer the file sin such a way that in ASCII file data is displayed in four lines instead of single line. Thanks, |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Yes, you can.
The details depend on your transfer mechanism. You have documentation, presumably? |
|
Back to top |
|
|
salilnigam1970
New User
Joined: 26 Jan 2016 Posts: 5 Location: india
|
|
|
|
We are doing file transfer to USS directory using the sample code available over internet as below. but all data appear in single line
//COPYSTEP EXEC PGM=IKJEFT01
//INMVS DD DSN=EV6946.USS.TO.MVS,DISP=OLD
//OUTHFS DD PATH='/SYSTEM/tmp/EV6946.MVS.TO.USS2',
// PATHOPTS=(OCREAT,OWRONLY),PATHMODE=(SIRUSR,SIWUSR)
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(INMVS) OUTDD(OUTHFS) BINARY CONVERT(NO)
/*
Input file has details in following format:
Header
dataline1
dataline2
trailer
But ASCII file at USS directory is displayed as
Header dataline1 dataline2 trailer
Thanks |
|
Back to top |
|
|
salilnigam1970
New User
Joined: 26 Jan 2016 Posts: 5 Location: india
|
|
|
|
Can I have a link where supporting document is available to apply it in our JCL. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
The description of the "JCL and VSAM" part of the forum:
Quote: |
Queries about JCL, JES, VSAM, DFHSM, DFSMS & RACF
|
Your post does not fall into any of these categories. |
|
Back to top |
|
|
salilnigam1970
New User
Joined: 26 Jan 2016 Posts: 5 Location: india
|
|
|
|
As I am new to this forum, could you please guide me where I have to post this query. Thanks |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Quote: |
OCOPY INDD(INMVS) OUTDD(OUTHFS) BINARY CONVERT(NO)
|
Why copying as BINARY ? AFAIK, binary won't recognise the newline characters....
Garry. |
|
Back to top |
|
|
|