Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Formating records in a single line

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

New User


Joined: 21 Feb 2007
Posts: 70
Location: bangalore

PostPosted: Mon Jun 29, 2009 9:12 pm    Post subject: Formating records in a single line
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: 7932
Location: Bellevue, IA

PostPosted: Mon Jun 29, 2009 9:14 pm    Post subject:
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: 70
Location: bangalore

PostPosted: Mon Jun 29, 2009 9:17 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Jun 30, 2009 12:59 am    Post subject:
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    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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us