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
 

 

Does SORT provide LRECL in programming?

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

New User


Joined: 27 Aug 2006
Posts: 41
Location: Taiwan

PostPosted: Fri Mar 20, 2015 12:50 pm    Post subject: Does SORT provide LRECL in programming?
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Fri Mar 20, 2015 1:19 pm    Post subject: Reply to: Does SORT provide LRECL in programming?
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: 41
Location: Taiwan

PostPosted: Fri Mar 20, 2015 1:32 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Fri Mar 20, 2015 5:48 pm    Post subject: Reply to: Does SORT provide LRECL in programming?
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: 41
Location: Taiwan

PostPosted: Fri Mar 20, 2015 9:28 pm    Post subject:
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: 41
Location: Taiwan

PostPosted: Mon Mar 23, 2015 7:49 am    Post subject:
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    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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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