Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to display data in separate lines in ASCII file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
salilnigam1970

New User


Joined: 26 Jan 2016
Posts: 5
Location: india

PostPosted: Tue Jan 26, 2016 5:30 pm    Post subject: How to display data in separate lines in ASCII file.
Reply with quote

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
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Tue Jan 26, 2016 6:11 pm    Post subject: Reply to: How to display data in separate lines in ASCII file.
Reply with quote

Yes, you can.

The details depend on your transfer mechanism. You have documentation, presumably?
Back to top
View user's profile Send private message
salilnigam1970

New User


Joined: 26 Jan 2016
Posts: 5
Location: india

PostPosted: Tue Jan 26, 2016 6:28 pm    Post subject: Reply to: How to display data in separate lines in ASCII file.
Reply with quote

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
View user's profile Send private message
salilnigam1970

New User


Joined: 26 Jan 2016
Posts: 5
Location: india

PostPosted: Tue Jan 26, 2016 7:49 pm    Post subject: Reply to: How to display data in separate lines in ASCII file.
Reply with quote

Can I have a link where supporting document is available to apply it in our JCL.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1922
Location: UK

PostPosted: Tue Jan 26, 2016 8:02 pm    Post subject:
Reply with quote

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
View user's profile Send private message
salilnigam1970

New User


Joined: 26 Jan 2016
Posts: 5
Location: india

PostPosted: Tue Jan 26, 2016 9:44 pm    Post subject: Reply to: How to display data in separate lines in ASCII file.
Reply with quote

As I am new to this forum, could you please guide me where I have to post this query. Thanks
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1002
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Jan 27, 2016 2:50 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 3 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us