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
 

 

&LENGTH() in file tailoring skeleton

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2033
Location: Silicon Valley

PostPosted: Mon Aug 01, 2011 9:38 pm    Post subject: &LENGTH() in file tailoring skeleton
Reply with quote

Per the manuals, I think it should work:

Code:
)SET PARTLEN = &LENGTH(&PARTLEVE) 
)SET PARTLEN = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,22, 23, 24, 25, 26, 27, 28, 29,
1, 52, 53, 54, 55, 56, 57, 58,59,60, 61, 62, 63, 64, 65, 66, 67,68)                                                       
--   PART LEN = &PARTLEN   
FTINCL  ABCDE       
ISPF105  - Output overflow                                       
Line to be written greater than data set LRECL (80), ABCDE record-139

I expect &LENGTH to determine the size of a character string and for my variable PARTLEN to be set to that length. It does not seem to do much of anything.

Has anyone used it before?
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2429
Location: Netherlands, Amstelveen

PostPosted: Mon Aug 01, 2011 9:39 pm    Post subject:
Reply with quote

Never.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1753
Location: Bloomington, IL

PostPosted: Mon Aug 01, 2011 11:48 pm    Post subject: Re: &LENGTH() in file tailoring skeleton
Reply with quote

Pedro wrote:
I expect &LENGTH to determine the size of a character string and for my variable PARTLEN to be set to that length. It does not seem to do much of anything.

Has anyone used it before?

I believe that you must use )SETF to set variables to the output of extended functions.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2033
Location: Silicon Valley

PostPosted: Tue Aug 02, 2011 1:32 am    Post subject: Reply to: &LENGTH() in file tailoring skeleton
Reply with quote

Thanks.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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