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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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