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
 

 

What do you mean by OUTREC(1,2,30)

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

New User


Joined: 28 Feb 2006
Posts: 6

PostPosted: Mon May 08, 2006 5:22 pm    Post subject: What do you mean by OUTREC(1,2,30)
Reply with quote

Can any one tell me the meaning of third parameter i.e. 30

Dil
Back to top
View user's profile Send private message

Kodisala

New User


Joined: 13 Apr 2005
Posts: 5
Location: Hyderabad

PostPosted: Mon May 08, 2006 5:47 pm    Post subject: Re: What do you mean by OUTREC(1,2,30)
Reply with quote

If I am not wrong... it should be OUTREC(1:2,30)... Then it says 30 characters of input dataset record beginning from 2 nd character should be copied to output dataset record starting with position 1.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon May 08, 2006 8:58 pm    Post subject:
Reply with quote

Code:
 
  OUTREC(1,2,30)


This syntax is incorrect. Presuming this is part of an OUTFIL statement, OUTREC( should be OUTREC=(. And 1,2,30 is not valid at all. 30 would have to be followed by a length to make it valid, e,g (1,2,30,5). (1:2,30) would be valid as Kodishala explains.

Go back to wherever or whoever you got this parameter from and look again.
Back to top
View user's profile Send private message
dilmohan

New User


Joined: 28 Feb 2006
Posts: 6

PostPosted: Tue May 09, 2006 9:36 am    Post subject: Re: What do you mean by OUTREC(1,2,30)
Reply with quote

HI

I checked it again ..its OUTREC FIELDS=(1,4,30) and its there in production.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue May 09, 2006 8:11 pm    Post subject:
Reply with quote

That makes more sense. That's a valid OUTREC statement for a VB input set. It creates output records with the RDW (1,4) and the bytes from input position 30 to the end of the record.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
Back to top
View user's profile Send private message
dilmohan

New User


Joined: 28 Feb 2006
Posts: 6

PostPosted: Wed May 10, 2006 10:17 am    Post subject: thanks
Reply with quote

Hi Yaeger

I wolud really appreciate your efforts to solve my problem.
Otherthan that can you tell me wat is RDW ?
i checked with manuals but nothing helped out.
I got this much that its something related to VB file
Back to top
View user's profile Send private message
Jerry

New User


Joined: 16 Sep 2005
Posts: 42

PostPosted: Wed May 10, 2006 2:05 pm    Post subject:
Reply with quote

Hi Dilmohan,

RDW is Record Word Descriptor, which is used to give details regarding record length in a VB file.

Correct me if I am wrong.

Regards,
Jerry.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed May 10, 2006 8:35 pm    Post subject:
Reply with quote

The RDW is the Record Descriptor Word. It is the first 4 bytes in VB records. The first two bytes gives the length of the record in binary (e.g. a 50 byte record has X'0032' in the first two bytes). The second two bytes are X'0000' for a VB file.
Back to top
View user's profile Send private message
Brian's_song

New User


Joined: 27 Dec 2005
Posts: 21

PostPosted: Wed May 10, 2006 9:23 pm    Post subject:
Reply with quote

Thank you very much , Frank!!
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 outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am
No new posts OUTREC RDW NOT INCLUDED krsenthil85 SYNCSORT 10 Fri May 06, 2016 3:22 am
No new posts OUTREC on OUTFIL error rocky_balboa DFSORT/ICETOOL 4 Thu Aug 27, 2015 10:26 am


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