IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reformatting PD field to alpha on input within PARSE


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Wed Mar 21, 2012 2:17 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts force tablespace using LISTDEF input DB2 1
Search our Forums:

Back to Top