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
 
Reformatting PD field to alpha on input within PARSE

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

New User


Joined: 10 Dec 2010
Posts: 96
Location: Massachusetts

PostPosted: Wed Mar 21, 2012 1:39 am    Post subject: Reformatting PD field to alpha on input within PARSE
Reply with quote

Code:

ADLINE-ORDNO      S9(7)      PD     4       7189020


I believe I saw in one of your posts awhile back that you could couple a %01 parse field with a reformat for output. I would like my output to appear as the 7189020 does above. Just not sure exactly how I would code that when I am parsing out the input file. Thanks.
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Mar 21, 2012 2:17 am    Post subject:
Reply with quote

I'm not really sure what you're looking for here. If you PARSE a PD,4 value into %01, a FIXLEN=4 parsed field, you could use %01,PD,TO=ZD to convert it to ZD. For example:

Code:

  INREC PARSE=(%=(ENDBEFR=C','),%01=(FIXLEN=4)), 
        BUILD=(%01,PD,TO=ZD)                     


Does that help? If not, you need to do a better job of explaining what exactly it is you want to do with examples of input and expected output.
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

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