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

Formating records in a single line


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Mon Jun 29, 2009 9:12 pm
Reply with quote

Hi,

I want to write a jcl to put records in order

input file:

12345
ashok
45678
kumar

output file:

12345 ashok
45678 kumar

Can some one please help me
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Mon Jun 29, 2009 9:14 pm
Reply with quote

1. JCL won't do this. A utility could, or a program could. JCL does nothing but execute programs, so JCL cannot do this.

2. You say "put records in order" yet you appear to be combining records instead. Could you give some more examples since your statement and your example contradict one another?
Back to top
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Mon Jun 29, 2009 9:17 pm
Reply with quote

my requirement is that i have a output file which is distorted in order.
I expect data to come as

12345 ashok

but is comming as

12345
ashok

now i want to do something on this output file to get the data back as

12345 ashok
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jun 29, 2009 9:47 pm
Reply with quote

Have you tried searching. The same question was ask earlier today.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 30, 2009 12:59 am
Reply with quote

Hello,

Suggest you resolve the problem of the "good" data being split into "bad" data rather than patching it back together again.

What is causing the data to "come out of order"?
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top