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: 2038
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: 2433
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: 1755
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: 2038
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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