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: 72
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: 8117
Location: East Dubuque, Illinois, USA

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: 72
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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm


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