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
 

 

Sort on EBCDIC,not sure

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

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Wed Aug 04, 2010 9:22 pm    Post subject: Sort on EBCDIC,not sure
Reply with quote

Dear Experts,

I am getting a file from another mainframe system of 80 lenght,fixed block.
For my reporting purpose I am only interested in records whereever from position 46 and next 5 lenght it has value 40834.with a hex on on this file I see following on mainframe.I am wondering if this is EBCDIC format?

FFFFF
40834

I actually need 10 sample records copied from this file with key as this field which is starting at position 46 and has lenght of 5.

I am not sure what datatype should be used with sort on this.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Aug 04, 2010 9:45 pm    Post subject: Reply to: Sort on EBCDIC,not sure
Reply with quote

Yes, it most certainly is.
Back to top
View user's profile Send private message
raghavmcs

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Wed Aug 04, 2010 9:50 pm    Post subject:
Reply with quote

Okay,thanks,I am wondering if DFSORt has something for checking this datatype directly or there would be some internal conversion I would have to do.
Back to top
View user's profile Send private message
raghavmcs

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Wed Aug 04, 2010 9:51 pm    Post subject:
Reply with quote

Just a correction I see this is VB file.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Aug 04, 2010 9:58 pm    Post subject:
Reply with quote

raghavmcs,

Use the following DFSORT JCL . All you need is a simple include cond and copy statement and restrict it to the number of records you want.

Code:

//STEP0100 EXEC PGM=SORT             
//SYSOUT   DD SYSOUT=*               
//SORTIN   DD DSN=Your input Vb file,DISP=SHR       
//SORTOUT  DD SYSOUT=*               
//SYSIN    DD *                       
  INCLUDE COND=(50,5,CH,EQ,C'40834')
  OPTION COPY,STOPAFT=10   
//*
Back to top
View user's profile Send private message
raghavmcs

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Wed Aug 04, 2010 10:05 pm    Post subject:
Reply with quote

I am sorry it was really my mistake while I was using the CH with sort the thing whihc I overlooked was the file was VB and I assumed its FB!!!
Really poor.
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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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