IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Does SORT provide LRECL in programming?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jacobdng

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Fri Mar 20, 2015 12:50 pm
Reply with quote

Using WHEN=GROUP in PARSE function, eventually we have to insert SEQ,ID or a field in certain position of the orignal record, just as the following sample:


Code:

 OUTFIL IFTHEN=(WHEN=GROUP,
             BEGIN=(1,5,CH,EQ,C’DATE:’),
             PUSH=(15:ID=3,31:21,8))


If we specify an item that extends the output record beyond the end of the input record, we have to manually identify the value of LRECL, which brings the JCL subject to change whenever LRECL is differed.

Does DFSORT provide a system variable or function to identify the value of LRECL in programming?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Mar 20, 2015 1:19 pm
Reply with quote

If you simply remove the LRECL from the output dataset in the JCL, then DFSORT will take care of it and you'll only have one place to maintain it.

If your control cards are giving you the wrong LRECL, correct them.
Back to top
View user's profile Send private message
jacobdng

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Fri Mar 20, 2015 1:32 pm
Reply with quote

Bill,
I am not sure what you said is the answer to my question.
I may have misunderstood your meaning since English is not my native.

I am instereted in how to specify the output position to be overlaid.

Syntax of PUSH function

PUSH=(c:item,...)

It is "c" that I hope to make it abstract instead of typing the literal number.

Jacob
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Mar 20, 2015 5:48 pm
Reply with quote

So, you want to extend your fixed-length record an instead of specifying literalvalue: you want to specify somethingfancythatDFSORTsupplies:

No.

Quote:
c: Specifies the output position (column) to be overlaid. If you do not
specify c: for the first item, it defaults to 1:. If you do not specify c:
for any other item, it starts after the previous item. You can specify
items in any order and overlap output columns. c can be 1 to
32752.


If you can describe a bit more about the problem this causes you, there may be suggestions to work around it.
Back to top
View user's profile Send private message
jacobdng

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Fri Mar 20, 2015 9:28 pm
Reply with quote

Bill,
Thanks for your response.

I'll gather the info of the real problem when I get back to the office next Monday.

Jacob
Back to top
View user's profile Send private message
jacobdng

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Mon Mar 23, 2015 7:49 am
Reply with quote

Bill,

In a second thought, I can live with the literal value anyway.

So, I am not pressing on this topic any longer .

Thanks.

Jacob
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top