Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Regarding the EBCDIC CCSID mapping. sakthikumarT DB2 2 Wed Jan 10, 2018 4:45 pm
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Conversion of UTF-8 to EBCDIC muralikrishnan_new COBOL Programming 1 Tue Nov 21, 2017 5:33 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us