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
 

 

Need to convert COMP-3 to decimal using Syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 118
Location: India

PostPosted: Wed Mar 18, 2015 4:30 pm    Post subject: Need to convert COMP-3 to decimal using Syncsort
Reply with quote

Hi

Need to convert S9(8)V9(2) USAGE COMP-3. to displayable decimal . could you please help. using syncsort.


tried with below card but gives error "WER268A OUTFIL STATEMENT : SYNTAX ERROR "

Code:
SORT FIELDS=COPY                                           
OUTFIL FNAMES=FINAL1,                                       
OUTREC BUILD=(1:C'1'                                             
             ,2:6,6,PD,TO=ZD,LENGHT=10),                           
       REMOVECC,HEADER1=('0',2:'xyzfile   ',12:DATE=(4MD-)),
       TRAILER1=('9',COUNT=(M11,LENGTH=10))


Code'd
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7233

PostPosted: Wed Mar 18, 2015 5:50 pm    Post subject: Reply to: JCl sort
Reply with quote

LENGHT. Fix the typo.

Please use the Code tags to preserve spacing in future posts, and ensure that the marker which indicates the location of the error appears in the correct place. To see what your posting looks like before submitting it, use the Preview button.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7233

PostPosted: Wed Mar 18, 2015 5:55 pm    Post subject: Reply to: JCl sort
Reply with quote

Having now code'd it, it looks a real mess.

Code:
 SORT FIELDS=COPY                                           
 OUTFIL FNAMES=FINAL1,                                       
        BUILD=(C'1',                                             
               6,6,PD,
                TO=ZD,
                LENGTH=10),                           
        REMOVECC,
        HEADER1=('0',2:'xyzfile   ',12:DATE=(4MD-)),
        TRAILER1=('9',COUNT=(M11,LENGTH=10))
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 118
Location: India

PostPosted: Wed Mar 18, 2015 6:18 pm    Post subject:
Reply with quote

if i want to conver the PD to ZD with visible decimal pointer and leading +/- sign, how can i do that..
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7233

PostPosted: Wed Mar 18, 2015 6:21 pm    Post subject: Reply to: JCl sort
Reply with quote

Use EDIT= with the mask you want. Examples here, also all explained in your SyncSORT documentation. In future please try to post in the correct part of the forum.
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 -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts convert PD to ZD ram_vizag DFSORT/ICETOOL 5 Sat Nov 05, 2016 3:06 am


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