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
 

 

Regarding this new requirement?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Mon Jun 30, 2008 5:50 pm    Post subject: Regarding this new requirement?
Reply with quote

Hi,

I have a input file like this

Code:

123 APT 21
MELLONE CIRCLE
LOS ANGELS
LA
12345


AND I WANT OUTPUT AS

Code:

123APT21MELLONECIRCLELOSANGELSLA 12345


THANKS
R KARTHIK
Back to top
View user's profile Send private message

ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Mon Jun 30, 2008 5:56 pm    Post subject:
Reply with quote

Read all the records from input file into One dimentional array. Write the high level group variable to output file.

--Parag
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Mon Jun 30, 2008 6:29 pm    Post subject: Reply to: Regarding this new requirement?
Reply with quote

Hi, i am very sorry for wrongly mentioning the file layout

INPUT file:
Code:

123 APT 21                    ----   field 1
MELLONE CIRCLE   ----   field 2
LOS ANGELS    ----   field 3
LA   ----   field 4
12345   ----   field 5


01 wk-details.
05 field1
05 field2
05 field3
05 field4
05 field5



Output file:
Code:

123APT21MELLONECIRCLELOSANGELSLA 12345
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 30, 2008 6:38 pm    Post subject:
Reply with quote

How will the output data be delimited should you ever want to rebuild the full address again from this data ???
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Mon Jun 30, 2008 6:43 pm    Post subject: Reply to: Regarding this new requirement?
Reply with quote

HI expat,

I want the o/p as mentioned that only. I will not used to rebuild that o/p.


Thanks
R KARTHIK
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: Mon Jun 30, 2008 9:39 pm    Post subject:
Reply with quote

Hello,

Set up arrays for the input and the output.

Move 1 byte at a time from the input to the output skipping all of the blanks except for 1 after the state code.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts Cards mainframe developer requirement... capricorn Mainframe Jobs 0 Sun Sep 11, 2016 9:57 am
This topic is locked: you cannot edit posts or make replies. Urgent Requirement in CTS Chennai. Mahi_e Mainframe Jobs 0 Wed Feb 17, 2016 3:52 pm
This topic is locked: you cannot edit posts or make replies. IBM SYSTEM PROGRAMMER REQUIREMENT mjadwani2785 Mainframe Jobs 0 Thu Nov 05, 2015 5:41 pm
No new posts CA7 Advance command to check the run ... thesumitk CA Products 1 Thu Sep 25, 2014 4:10 pm


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