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
 

 

can we check the record length of variable using a syncsort?

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

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Mon Jun 29, 2009 10:39 am    Post subject: can we check the record length of variable using a syncsort?
Reply with quote

Hi,
Is there any way by which we can check the record length of variable using a syncsort ?
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jun 29, 2009 10:51 am    Post subject:
Reply with quote

Hello Ketan,

Your question leaves a lot more to know -- is your question same as the original question of the thread? (on the back of which you append your question.)

Please show some example of input and then expected output from that.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Mon Jun 29, 2009 11:03 am    Post subject:
Reply with quote

Hi Anuj,
I m new member out here..... Just read that thread n was keen to know that is there any way by which we can determine the record length of any variable........

For eg

we have file of fixed record length and there can be a possibility that we can have different records ...

first rec 12345
2nd rec 123
3rd rec 9

So there are can be possibility that we can rec of different length

So is there any way by which we can know that length of the each record using the sort ….

As we can do the same using in cobol
Read one my be each rec and then use length of rec(x) to length

By this way we can get the record length of each variable .
So My questions is the same as Sandeep has……
It not my project requirement but I just want to know abt this …. So I posted in the same thread

Thanks

Ketan Varhade
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jun 29, 2009 11:32 am    Post subject:
Reply with quote

Hi,
Quote:
we have file of fixed record length and there can be a possibility that we can have different records
If in above quoted text by "different records" you want to say "variable length records" then that's not correct for a file with RECFM=FB as you stated. That can be true for VB files though.

If this was about VB files, you can show the contents of RDW using the below job:
Code:
//SHOWV EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN  DD DSN=...  input file (VB)
//SORTOUT DD SYSOUT=*
//SYSIN    DD    *
  OPTION COPY
  OUTREC BUILD=(1,4,1,2,BI,C'|',5)
/*
input file (VB) can have
Code:
111 A$$$$345   
222 AAAAA12324 
444 FFFFF455   
555 GGGGG1     
888 CCCCC12     
Sortout will have:
Code:
   16 |111 A$$$$345   
   18 |222 AAAAA12324 
   16 |444 FFFFF455   
   14 |555 GGGGG1     
   15 |888 CCCCC12     

And yes, everyone was new once upon a time ... icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Mon Jun 29, 2009 11:44 am    Post subject: Reply to: can we check the record length of variable using a
Reply with quote

Quote:
And yes, everyone was new once upon a time ...


but the main issue is being new with an expired warranty icon_biggrin.gif
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 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 What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


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