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
 
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: 8165
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 3 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm

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