Questions tagged [variable-length]

Refers to anything whose length can vary

Refers to anything whose length can vary

290 questions
1
vote
3 answers

Changing a variable length without getting a warning

I have a variable called ID on dataset OLD, and I need to change the length from 13 to 12 for a merge. Below is the metadata associated with this variable. Variable Type Len Format Informat Label ID Char 13 $12. $12. 'Person ID' (The…
J.Q
  • 971
  • 1
  • 14
  • 29
1
vote
2 answers

Creating a dataframe by concatenating substrings of non-uniform lengths

The raw data (.txt) file has 65926 elements, each containing a 142 character string. Here's the dropbox link to the raw data file. The task is to divide that 142 character string into 37 smaller strings (each substring being a separate character…
1
vote
0 answers

How to get string length in qmake

Lets say we have a variable VAR in a qmake pro file. How to get the VAR content length? I tried to use bash syntax {#$VAR}.
Sergei Krivonos
  • 4,217
  • 3
  • 39
  • 54
1
vote
2 answers

Value of macro variable as length of another variable?

I am new to SAS and didn't find an answer to my question. Maybe this community would/could be so Kind to help me. Is it possible to define the value of a macro variable as the length of another variable? I do know that the value of a macro is…
Kris
  • 11
  • 2
1
vote
1 answer

Issue in T-SQL while checking null variable

I am writing a trigger in SQL Server like this DECLARE @N_CATComp smallint, @EXON varchar(69), @DATEDEB varchar(15), @DATEFIN varchar(15) SELECT @N_CATComp = N_CATCompta, @EXON =[Exon N°], @DATEDEB = CONVERT(varchar(15), [Date début]…
hollyx
  • 99
  • 1
  • 9
1
vote
5 answers

Parsing String into multiple variable length String (C#)

I am currently trying to convert a VB6 program into C#. There was extensive use of string splitting into structure. For example, Dim Sample AS String Sample = "John Doe New York Test Comment" Public Type Struct1 Name As String * 15 …
Nap
  • 8,096
  • 13
  • 74
  • 117
1
vote
3 answers

How to put vectors with different length together to one matrix

I’ve got a data frame like this: id class 146 H02J 146 F03D 146 F03D 287 F16F 287 F16F 1040 F03D 1040 …
David
  • 13
  • 2
1
vote
1 answer

illegal vector field selection length

I am receiving this error on a pc where I cannot have access. The error is on the Vertex Shader of the init program of the depth peeling technique. ERROR: 0:42: error(#222) Illegal vector field selection length ERROR: 0:42: error(#222) Illegal…
elect
  • 6,765
  • 10
  • 53
  • 119
1
vote
5 answers

What is best way to implement variable length arrays?

I want to store a large result set from database in memory. Every record has variable length and access time must be as fast as arrays. What is the best way to implement this? I was thinking of keeping offsets in a separate table and storing all of…
knaser
  • 1,421
  • 7
  • 19
  • 16
1
vote
2 answers

How do I use the answer of an .length object count in an if statement?

I want to have some dynamics in my creation and therefor need jQuery to count the times a div appears within a different div and based upon the answer executes a function; change css to be exact.
Sander Schaeffer
  • 2,757
  • 7
  • 28
  • 58
1
vote
1 answer

Variable length Blob in hibernate?

I have a byte[] member in one of my persistable classes. Normally, I'd just annotate it with @Lob and @Column(name="foo", size=). In this particular case, however, the length of the byte[] can vary a lot (from ~10KB all the way up to ~100MB). If I…
Seth
  • 5,596
  • 8
  • 42
  • 56
1
vote
2 answers

How to create a variadic (with variable length argument list) function wrapper in JavaScript

The intention is to build a wrapper to provide a consistent method of calling native functions with variable arity on various script hosts - so that the script could be executed in a browser as well as in the Windows Script Host or other script…
1
vote
0 answers

How to FTP a variable length file from linux to mainframe z/OS

I could not FTP a variable length file to mainframe; the operation was success, but the dataset generated on mainframe is not correct; can anyone help me. procedures. I have created a variable length dataset on…
HiHui
  • 45
  • 2
  • 11
1
vote
3 answers

How to have a container-like way of adding variable lenght data in C

In C, I would like to have a structure which would receive, from time to time, new data of a particular kind (lets say a float value that tells the current temperature). Now the problem is that I don't know how many of such data I'll get over time…
Momergil
  • 2,213
  • 5
  • 29
  • 59
1
vote
2 answers

SAS why invalid data length

data temp; length a 1 b 3 x; infile ''; input a b x; run; The answer said "The data set TEMP is not created because variable A has an invalid length". Why it's invalid in this small program?
zhuoer
  • 617
  • 1
  • 7
  • 15