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
 

 

How to check number of characters using DFSORT or icetool

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Nitin Bhargava

New User


Joined: 22 May 2012
Posts: 32
Location: india

PostPosted: Mon Oct 22, 2012 6:47 pm    Post subject: How to check number of characters using DFSORT or icetool
Reply with quote

Hi All,

I am having a file which is as follows:
Code:
S.N LN     FN          MIDDLE        COUNTRY PIN
001 FYKE,THOMAS L                  INDIA 450010
002 NITESH, JHA KUMAR            US      458-96
003 ROHIT, SIGHAI S                INDIA  456101

The output expected is as per below rules
Sequence number should start from 1st position.
Name present before "," is last name and in output it should start from 10th position.
Field after last name is first name and should start from 30th position (it could start with spaces or from a character).
Middle name and last name are seperated by a single space.
If Middle name is only for one character then it should be populated in 50th postion. if it is more than one character it should dtart from 60th position.
rest of the record will start from 70 th position.

Its a FB with record lenght 1000.

The output will look like

Code:
001      FYKE           THOMAS        L                          INDIA    450010
002      NITESH         JHA                     KUMAR            US       458-96
003      ROHIT          SIGHAI        S                          INDIA    456101

Regards
Nitin bhargava
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 Oct 22, 2012 7:45 pm    Post subject:
Reply with quote

Hello,

You need to post the expected output using that sample input (in addition to just posting the "rules").

Note: The requested info has been added to the original post . . .
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Oct 22, 2012 11:24 pm    Post subject:
Reply with quote

Nitin Bhargava,

Counting characters or just parsing the input and placing in fixed positions?. I believe this is an extension of another topic about dates.
Back to top
View user's profile Send private message
Nitin Bhargava

New User


Joined: 22 May 2012
Posts: 32
Location: india

PostPosted: Tue Oct 23, 2012 8:48 pm    Post subject: Reply to: How to check number of characters using DFSORT or
Reply with quote

nopes its different this time,
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 Oct 23, 2012 9:22 pm    Post subject:
Reply with quote

Hello,

Quote:
nopes its different this time,
Is there any use to this reply icon_sad.gif
What about answering the question Kolusu asked icon_confused.gif


@Kolusu,
The link above appears to be a self-reference to this topic?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Oct 23, 2012 9:23 pm    Post subject: Re: Reply to: How to check number of characters using DFSORT
Reply with quote

Nitin Bhargava wrote:
nopes its different this time,


'so give me my solution, now!'
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Tue Oct 23, 2012 9:38 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Quote:
nopes its different this time,
Is there any use to this reply icon_sad.gif
What about answering the question Kolusu asked icon_confused.gif


@Kolusu,
The link above appears to be a self-reference to this topic?


dick scherrer,

I was referring to this topic by Nitin Bhargava

http://ibmmainframes.com/about59707.html
Back to top
View user's profile Send private message
Nitin Bhargava

New User


Joined: 22 May 2012
Posts: 32
Location: india

PostPosted: Thu Oct 25, 2012 6:25 pm    Post subject: Reply to: How to check number of characters using DFSORT or
Reply with quote

Hi,

Do we have any option to do it?

Regards
Nitin Bhargava
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Thu Oct 25, 2012 6:36 pm    Post subject: Reply to: How to check number of characters using DFSORT or
Reply with quote

Yes. You've been asked, more than once, for more information. I'm not sure anyone is going to do anything until you provide it.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm


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