Questions tagged [sysin]

4 questions
11
votes
3 answers

Read STDIN (SYSIN) in COBOL

I want to read the lines out of STDIN (aka SYSIN) in COBOL. For now I just want to print them out so that I know I've got them. From everything I'm reading it looks like this should work: IDENTIFICATION DIVISION. PROGRAM-ID. APP. ENVIRONMENT…
singpolyma
  • 10,999
  • 5
  • 47
  • 71
2
votes
1 answer

COBOL: SYSIN JCL for compiling source from PDS

I'm just starting COBOL, and ran into this with JCL... How do I compile a basic cobol program from my PDS, I know through instream it would just be //SYSIN DD * code code code /* I tried something like //SYSIN DD…
Jeff
  • 21
  • 2
0
votes
1 answer

How to solve INVALID DATA SET ATTRIBUTES using DFSORT?

I'm trying to pass a IBM file to hex values, so I coded this: //R45ORF80V JOB (EFAS,2SGJ000),'LLAMI',NOTIFY=R45ORF80, // MSGLEVEL=(1,1),MSGCLASS=X,CLASS=A, // REGION=0M,TIME=5 …
mllamazares
  • 7,876
  • 17
  • 61
  • 89
-1
votes
3 answers

shell script does not read last line from sysin

I try to get some data from sysin and here is my problem: if data are directed from a file, then the last line is not read. Example of text file: line1 line2 line3 My code: #!/bin/bash while read line do echo "$line" done And output: $ ./test.sh…
Nawy
  • 13
  • 1
  • 5