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
 

 

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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


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