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
 

 

displaying Comp-3 varibles through SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
antonyjoseph

New User


Joined: 11 Apr 2007
Posts: 28
Location: India

PostPosted: Mon Aug 13, 2007 5:47 pm    Post subject: displaying Comp-3 varibles through SYNCSORT
Reply with quote

I have a file where format is as follows

1-10 character
11-15 COMP 3

How can i display this using outrec statement in normal format. I get special characters when i try it.
Back to top
View user's profile Send private message

Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Mon Aug 13, 2007 6:17 pm    Post subject:
Reply with quote

Hi Antony,

Try this out
OUTREC FIELDS=(1:1,10,11:11,5,PD,TO=ZD,LENGTH=10)

Syntax might not be accurate.. Pls check SYNCSORT appl prog guide for more details...

Thanks,
Prajesh
Back to top
View user's profile Send private message
antonyjoseph

New User


Joined: 11 Apr 2007
Posts: 28
Location: India

PostPosted: Mon Aug 13, 2007 7:28 pm    Post subject: Re: displaying Comp-3 varibles through SYNCSORT
Reply with quote

Thanks
Will check this out.
Got the code working with "edit"
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 Aug 13, 2007 11:44 pm    Post subject:
Reply with quote

Hello,

Yes, EDIT can make the output "pretty", but not as easy to use as input to some other process. "TO=ZD" will convert the data from packed to zoned decimal.

Depending on how the "output" is to be used, you might use either.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


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