Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2088
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: 2445
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: 1783
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: 2088
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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us